Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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