Skip to content

Instantly share code, notes, and snippets.

@blitline-dev
Last active July 2, 2022 00:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blitline-dev/3019945 to your computer and use it in GitHub Desktop.
Save blitline-dev/3019945 to your computer and use it in GitHub Desktop.
Sample multiple scale on same source
{
"application_id":"YOUR_APP_ID",
"src":"https://s3.amazonaws.com/blitdoc/pdfs/sample.pdf",
"v":1.27,
"functions":[
{
"name":"resize_to_fit",
"params":{
"width":"800"
},
"save":{
"image_identifier":"MY_CLIENT_ID"
}
},
{
"name":"resize_to_fit",
"params":{
"width":"260",
"height":"410"
},
"save":{
"image_identifier":"MY_CLIENT_ID"
}
},
{
"name":"resize_to_fit",
"params":{
"width":"330",
"height":"520"
},
"save":{
"image_identifier":"MY_CLIENT_ID"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment