Overview
Sources
Libraries
Images API

Color Transform color-transform

Transform between different color spaces using ICC profiles.

This parameter will transform and attach the specified ICC profile to the output image. If the source image does not have a ICC profile sRGB will be used by default.

Color transformation can be useful to homogenize color space in your images collection. Web browsers assume sRGB as the default ICC profile for images, sometimes it can be useful to use color-transform=srgb parameter with strip=all to transform to sRGB color space and remove the ICC profile from the output image, so the final file size is reduced.

Values

  • srgb: will transform to standard sRGB color space.
  • tinysrgb: will transform to a reduced size version of sRGB color space in the case that you want to maintain the ICC profile of your images but reduce the final file size a bit.
  • adobe: will transform to compatible Adobe RGB (1998) color space.

Examples

Specify a color transformation to sRGB with color-transform=srgb parameter:

GET
https://assets.imglab-cdn.net/flowers.jpeg?color-transform=srgb
Tulips field with sRGB color space using color-transform parameter.
x px

Specify a color transformation to TINYsRGB with color-transform=tinysrgb parameter:

GET
https://assets.imglab-cdn.net/flowers.jpeg?color-transform=tinysrgb
Tulips field with TINYsRGB color space using color-transform parameter.
x px

Specify a color transformation to compatible Adobe RGB (1998) color space with color-transform=adobe parameter:

GET
https://assets.imglab-cdn.net/flowers.jpeg?color-transform=adobe
Tulips field with Adobe RGB (1998) color space using color-transform parameter.
x px

Specify a color transformation to sRGB and removing ICC color profile from ouput file with color-transform=srgb and strip=all parameters:

GET
https://assets.imglab-cdn.net/flowers.jpeg?color-transform=srgb&strip=all
Tulips field with sRGB color space using color-transform parameter and removing all metadata including ICC profile with strip parameter.
x px