Options for converting an RGB image to an indexed color model.

Static Properties

colors readonly The number of colors in the palette. Not valid for all palette types.
dither readonly The type of dither.
ditherAmount readonly The amount of dither. Valid only when ‘dither’ = diffusion.
forced readonly The type of colors to force into the color palette.
matte readonly The color to use to fill anti-aliased edges adjacent to transparent areas of the image. When transparency = false, the matte color is applied to transparent areas.
palette readonly The type of palette.
preserveExactColors readonly If true, protects colors in the image that contain entries in the color table from being dithered. Valid only when ‘dither’ = diffusion.
transparency readonly If true, preserves transparent areas of the image during conversion to GIF format.