Optional
delayOptional
disposeThe GIF frame disposal code for the last added frame and any subsequent frames.
Defaults to one of the following values:
0
: If transparent
is set2
: OtherwiseOptional
framerateThe frames per second, supersedes EncoderOptions.delay if set.
Optional
qualityThe quality of color quantization (conversion of images to the maximum 256 colors allowed by the GIF
specification) between 1
and 30
. Lower values (closer to 1) produce better colors but require significantly
more resources and processing. 10
is the default value as it produces good color mapping at reasonable speeds.
Optional
repeatThe number of times to repeat the GIF, between 0
and 65536
, with two special cases:
-1
: play once0
: repeat indefinitelyOptional
transparentThe transparent color for the last added frame and any subsequent frames. Since all colors are subject to modification in the quantization process, the color in the final palette for each frame closest to the given color becomes the transparent color for that frame. May be set to null to indicate no transparent color.
The frame delay in milliseconds.