Skip to content

Save preview image design

Sergii Ivashchenko edited this page May 1, 2019 · 15 revisions

PreviewApi

Image Metadata Storage

In order to implement replace preview to licensed image functionality, we should store information about the uploaded image. Consider storing as much info as we can to simplify further features development.

adobe_stock_image_metadata table

Field API Field Data Type Description
id N/A int Internal Id
category_id N/A int Foreign key to adobe_stock_image_category table
path N/A int Filesystem image path (relative to media directory root)
is_licensed N/A int Is image licensed and downloaded
adobe_id id int Asset's unique identifier on adobe stock side
title title string Asset's title
width width int licensed width
height height int licensed height
creator_name creator_name string Asset creator's name
country_name country_name string
media_type_id media_type_id string
creation_date creation_date string
details_url details_url string URL to the Adobe Stock details page for the asset. If you pass the Authorization header with the call, Adobe Stock generates an SSO jump URL
creator_id creator_id int Unique identifier for the asset's creator.
preview_url comp_url string URL to the watermarked version of the asset
preview_width comp_width int complementary (unlicensed) image pixels width
preview_height comp_height int complementary (unlicensed) image pixels height
media_type_id media_type_id int
vector_type vector_type string|null "svg" or "zip" (ai/eps) for vector images
content_type content_type string Mime type of the asset's content.
stock_id stock_id string
premium_level_id premium_level_id int Asset's premium (pricing) level.
media_type_id media_type_id int Type of the asset

adobe_stock_image_category table

Field Search Response Field Data Type Description
id N/A int
adobe_id category.id int
name category.name string

adobe_stock_image_keyword

Field Search Response Field Data Type Description
image_id N/A int
keyword_id N/A int

adobe_stock_image_keywords table

Field Search Response Field Data Type Description
id N/A int
keyword N/A string
Clone this wiki locally