OptionalcolorsThe number of palette colors. Valid only when palette is:
Palette.LOCALADAPTIVE, LOCALPERCEPTUAL, LOCALSELECTIVE, MACOSPALETTE, UNIFORM, WEBPALETTE; or WINDOWSPALETTE
OptionalditherThe dither type.
OptionalditherThe amount of dither.
Valid only when dither = Dither.DIFFUSION.
OptionalforcedThe type of colors to force into the color palette.
OptionalinterlacedTrue if rows should be interlaced.
OptionalmatteThe color to use to fill anti-aliased edges adjacent to transparent areas of the image.
When transparency is turned off for an image, the matte color is applied to transparent areas.
OptionalpaletteThe type of palette to use.
OptionalpreserveTrue to protect colors in the image that contain entries in the color table from being dithered.
Valid only when dither = DITHER.DIFFUSION
OptionaltransparencyTrue to preserve transparent areas of the image during conversion to GIF format.
Options for saving a document in GIF format using the Document.saveAs method
See
https://developer.adobe.com/photoshop/uxp/2022/ps_reference/classes/document/#saveas
Example
Targetfolder
objects/saveoptions
Optionobject
Min Version
22.5