logo The inexpensive hosted logging platform brought to you by Blitline.   Try
commonlogs.com

Image Optimization


Blitline has some built in optimizations you can use to squeeze the most out of your images.


We provide a ‘smart’ optimizer which will use numerous existing compression libraries to attempt to reduce your image to the smallest possible size.


This functionality is based on the image_optim gem.

How to use it:


Just add image_optim : true option to your save JSON node.


{
    "application_id":"YOUR_APP_ID",
    "src":"https://s3.amazonaws.com/img.blitline/sky.jpg",
    "v" : 1.22,
    "functions":[
        {
            "name":"crop",
            "params":{
                "gravity": "NorthGravity",
                "width":500
            },
            "save":{
                "image_optim" : true,
                "image_identifier":"MY_CLIENT_ID"
              }
        }
    ]
}


Example: Image Optimization