Output Options

CDN

S3 Signed Url

S3 Destination

FTP Destination

Azure Destination

IAM Users

Other Service Signed Urls

Getting Started

Blitline Job

Welcome

Job Options

List of Available Functions

Examples List

Functions

Job Response

Polling and Postbacks

Service Limits

Development Recommendations

Gotchas

Advanced

Pipelines

Fonts

Smart Image

Static IPs

Formats

Colorspace

Color Extraction

PDF

Image Optimization

Metadata

Signed Jobs

Subimage

Special (Non-Image) Processing

Zipping

Trancoding Video Presets

Apache Tika

AWS Rekognition/Facial Recognition

Animated GIFs

Building Gifs or Videos from Images

Find Image on the Internet

Video Keyframes

Video Transcoding

Screenshots of Websites

IM Scripts

Vector Processing

Colorspace

Updated 11 months ago by Blitline Support

COLORSPACE

Blitline supports the conversion of colorspaces on images and other various file formats such as PDF and vector.

The typical desire is to normalize images into an sRGB colorspace so that they appear properly on all devices.

To convert src files to sRGB by adding a

          "src_data" : { "colorspace": "srgb" }
          

…to the base JSON. This tells Blitline to convert to sRGB upon loading the file. Resulting outputted files will then be in the rgb colorspace.


So, for example:

          {
            "application_id": "YOUR_APP_ID",
            "src" : "https://s3.amazonaws.com/blitdoc/pdfs/seattle_cmyk.pdf",
            "v" : 1.2,
            "src_data": {"colorspace":"srgb"},
             "functions" :
            [{
              "name": "resize_to_fit",
              "params" : { "width" : 300 },
                "save" : {
                  "image_identifier" : "external_sample_1"
                }
            }]
          }

The output image will now have an rgb colorspace.


How did we do?