OptionalcolorsThe number of palette colors.
Valid only with palette types: LOCALADAPTIVE, LOCALPERCEPTUAL, LOCALSELECTIVE, MACOSPALETTE, UNIFORM, WEBPALETTE, or WINDOWSPALETTE.
OptionalditherThe type of dithering to be done.
OptionalditherThe amount of dithering to be done.
Valid only when dither typ is DIFFUSION.
OptionalforcedThe set of colors to force into the color palette.
OptionalmatteThe color to use to fill anti-aliased edges adjacent to transparent areas of the image.
When transparency is false, the matte color is applied to transparent areas.
OptionalpaletteThe palette type.
OptionalpreserveWhen true, the image colors matching entries in the color table will not be dithered.
OptionaltransparencyWhen true, transparent areas of the image are preserved during conversion to GIF format.
Options for converting an RGB image to an indexed color model using Document.changeMode
See
https://developer.adobe.com/photoshop/uxp/2022/ps_reference/classes/document/#changemode
Example
Example
Targetfolder
objects/conversionoptions
Optionobject
Min Version
23.0