Downloading asset renditions
Getting asset profiles
This section is only applicable if you will be downloading renditions of assets using asset profiles.
To get profiles, use the following API call:
API
GET: /v1/profiles
The API call returns a response that is similar to the following:
Response
{
"default_profiles": [
{
"id": "ORIGINAL",
"prompt": "Original"
},
{
"id": "PREVIEW",
"prompt": "Preview"
}
],
"image_profiles": [
{
"id": 317,
"links": [],
"profileName": "Mobile quality",
"profileShortName": "mobile-quality",
"description": "The transformer profile for sharing the content in mobile quality format.",
"subService": "IMAGE",
"preCache": "Y",
"commandLine": "-colorspace RGB#-resize x360#-density 72x72#-units PixelsPerInch",
"tenantId": "59b835b6-7428-40b7-8120-133eda961724",
"subscriptionId": "2c8d6163-4707-4df6-91e6-d9b439320fb4",
"lastModifiedDt": "2024-06-23 18:44:15",
"outputFormat": "jpg"
},
{
"id": 318,
"links": [],
"profileName": "Web quality",
"profileShortName": "web-quality",
"description": "The transformer profile for sharing the content in web quality format.",
"subService": "IMAGE",
"preCache": "Y",
"commandLine": "-resize x600#-density 72x72#-units PixelsPerInch",
"tenantId": "59b835b6-7428-40b7-8120-133eda961724",
"subscriptionId": "2c8d6163-4707-4df6-91e6-d9b439320fb4",
"lastModifiedDt": "2024-06-23 18:44:15",
"outputFormat": "jpg"
}
],
"video_profiles": [
{
"id": 319,
"links": [],
"profileName": "MP4 Streaming 720p",
"profileShortName": "video-720p-mp4",
"description": "The transformer profile for sharing the content in MP4 720p format.",
"subService": "VIDEO",
"preCache": "Y",
"commandLine": "-i %INPUTFILE% -vf \"scale='min(720,iw)':-2\" -c:v libx264 -crf 23 -preset medium -c:a aac -b:a 128k -movflags +faststart",
"tenantId": "59b835b6-7428-40b7-8120-133eda961724",
"subscriptionId": "2c8d6163-4707-4df6-91e6-d9b439320fb4",
"lastModifiedDt": "2024-06-23 18:44:15",
"outputFormat": "mp4"
},
{
"id": 320,
"links": [],
"profileName": "MP4 Streaming 1080p",
"profileShortName": "video-1080p-mp4",
"description": "The transformer profile for sharing the content in MP4 1080p format.",
"subService": "VIDEO",
"preCache": "Y",
"commandLine": "-i %INPUTFILE% -vf \"scale='min(1080,iw)':-2\" -c:v libx264 -crf 22 -preset medium -c:a aac -b:a 192k -movflags +faststart",
"tenantId": "59b835b6-7428-40b7-8120-133eda961724",
"subscriptionId": "2c8d6163-4707-4df6-91e6-d9b439320fb4",
"lastModifiedDt": "2024-06-23 18:44:15",
"outputFormat": "mp4"
}
]
}
Three categories of profiles are returned: image profiles, video profiles, and default profiles. You can use these profiles to generate the publicly accessible rendition URLs while retrieving the assets.