Skip to content

Instantly share code, notes, and snippets.

@blitline-dev
Created March 1, 2013 22:57
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/5068626 to your computer and use it in GitHub Desktop.
Save blitline-dev/5068626 to your computer and use it in GitHub Desktop.
Example Blitline pre_process job.
{
"application_id":"YOUR_APP_ID",
"src":"https://s3.amazonaws.com/bltemp/boys640.jpg",
"pre_process":[
{
"job":{
"src":"https://s3.amazonaws.com/img.blitline/mask3.png",
"functions":[
{
"name":"rotate",
"params":{
"amount":25
},
"functions":[
{
"name":"resize_to_fit",
"params":{
"width":640
},
"save":{
"image_identifier":"MY_CLIENT_ID"
}
}
]
}
]
}
}
],
"functions":[
{
"name":"composite",
"params":{
"gravity":"CenterGravity",
"src":"&MY_CLIENT_ID",
"composite_op":"CopyOpacityCompositeOp",
"as_mask":"true"
},
"save":{
"image_identifier":"output"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment