ImageHandlerModel Data Type

An image handler in the optimize settings that controls the output images.

Properties
name data type description
compression number An integer representing the type of compression to use for the output image. 0-Retain current compression, 1-JPEG compression, 2-JPEG2000 compression, 3-JBIG2 compression, 4-Flate compression.
colorSpace number An integer representing the color space for output images. 0-Retain current color space, 1-RGB, 2-Gray, 3-CMYK, 4-Black & White.
dpi number The maximum resolution for output images (dots per inch).
jpegQuality number The quality of output images when the JPEG or JPEG2000 compression is used. The value must be between 0 and 1.

Example

{
  "compression" : 12345,
  "colorSpace" : 12345,
  "dpi" : 12345,
  "jpegQuality" : 12345.0
}