Getting Started

​ ​Welcome

Blitline Job

Job Response

Job Options

Functions

Polling and Postbacks

Gotchas

Development Recommendations

Service Limits

Examples List

List of Available Functions

Output Options

S3 Destination

IAM Users

S3 Signed Url

Azure Destination

FTP Destination

Other Service Signed Urls

CDN

Advanced

Metadata

Colorspace

Color Extraction

Static IPs

Signed Jobs

Formats

Pipelines

Image Optimization

Smart Image

PDF

Fonts

Subimage

Special (Non-Image) Processing

AWS Rekognition/Facial Recognition

Apache Tika

Vector Processing

Animated GIFs

Screenshots of Websites

IM Scripts

Video Keyframes

Zipping

​ ​Trancoding Video Presets

​ ​Video Transcoding

Image Optimization

Updated a month ago ​by Blitline Support

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"
              }
        }
    ]
}

How did we do?