ColorSpace
class ColorSpace extends BaseQualifier
Controls the color space used for the delivered image.
Methods
Render the image in the sRGB color space.
Render the image using Facebook's truncated sRGB color space.
Render the image in the CMYK color space.
If the original image uses the CMYK color space, convert it to sRGB.
Retain the CMYK color space when generating derived images.
Specifies the ICC profile to use for the color space.
Details
static ColorSpace
srgb()
Render the image in the sRGB color space.
static ColorSpace
tinysrgb()
Render the image using Facebook's truncated sRGB color space.
static ColorSpace
cmyk()
Render the image in the CMYK color space.
static ColorSpace
noCmyk()
If the original image uses the CMYK color space, convert it to sRGB.
static ColorSpace
keepCmyk()
Retain the CMYK color space when generating derived images.
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.
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. |