class ColorSpace extends BaseQualifier

Controls the color space used for the delivered image.

Methods

srgb()

Render the image in the sRGB color space.

tinysrgb()

Render the image using Facebook's truncated sRGB color space.

cmyk()

Render the image in the CMYK color space.

noCmyk()

If the original image uses the CMYK color space, convert it to sRGB.

keepCmyk()

Retain the CMYK color space when generating derived images.

icc(string $publicId)

Specifies the ICC profile to use for the color space.

Details

static ColorSpace srgb()

Render the image in the sRGB color space.

Return Value

ColorSpace

static ColorSpace tinysrgb()

Render the image using Facebook's truncated sRGB color space.

Return Value

ColorSpace

static ColorSpace cmyk()

Render the image in the CMYK color space.

Return Value

ColorSpace

static ColorSpace noCmyk()

If the original image uses the CMYK color space, convert it to sRGB.

Return Value

ColorSpace

static ColorSpace keepCmyk()

Retain the CMYK color space when generating derived images.

Return Value

ColorSpace

static ColorSpace icc(string $publicId)

Specifies the ICC profile to use for the color space.

The ICC file must be uploaded to your cloud as a raw, authenticated file.

Parameters

Name Type Description
$publicId string The public ID (including the file extension) of the ICC profile that defines the color space.

Return Value

ColorSpace

Constants

SRGB

Render the image in the sRGB color space.

TINY_SRGB

Render the image using Facebook's truncated sRGB color space.

CMYK

Render the image in the CMYK color space.

NO_CMYK

If the original image uses the CMYK color space, convert it to sRGB.

KEEP_CMYK

Retain the CMYK color space when generating derived images.

ICC

Render the image using the specified color space (ICC) file. The ICC file must be uploaded to your cloud as a raw, authenticated file. Specify the ICC file using the icc method of the this class.