Skip to content

Instantly share code, notes, and snippets.

@blitline-dev
Last active August 29, 2015 14:01
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/9677005909d344cc18ee to your computer and use it in GitHub Desktop.
Save blitline-dev/9677005909d344cc18ee to your computer and use it in GitHub Desktop.
{
"application_id": "YOUR_APP_ID",
"src": "http://cdn.blitline.com/filters/boys.jpeg",
"functions": [
{
"name": "script",
"params": {
"bash_string": "convert input.png -set comment 'geometry:%g\ntrim bounding box:%@\nx offset:%x\ny offset:%y\nfile:%t' -trim -scale '160x160>' -gravity center -extent '160x160>' -quality 90 -profile sRGB.icc +profile 'xmp' +profile 'iptc' output.png"
},
"save": {
"extension": ".jpg",
"save_metadata" : true,
"save_profiles" : true,
"image_identifier": "MY_CLIENT_ID"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment