Skip to content

Instantly share code, notes, and snippets.

@blitline-dev
Created October 4, 2012 03:49
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/3831368 to your computer and use it in GitHub Desktop.
Save blitline-dev/3831368 to your computer and use it in GitHub Desktop.
Demonstrates the use of png_quantize. This option allows you to convert 32bit PNGs to 8bit PNGs (with alpha). This conversion greatly reduces the size of png files with a minimal loss in quality.
{
"application_id":"YOUR_APP_ID",
"src":"http://cdn.blitline.com/filters/boys.jpeg",
"functions":[
{
"name":"resize_to_fit",
"params":{
"width":100
},
"save":{
"extension":".png",
"image_identifier":"MY_CLIENT_ID",
"png_quantize":true
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment