Interface GIFAnimationEncoderOptions

interface GIFAnimationEncoderOptions {
    loopCount?: number;
    metadata?: Metadata;
    optimize?: boolean;
    quality?: number;
}

Hierarchy (View Summary)

Properties

loopCount?: number

How many times to repeat the animation (-1 = forever, 0 = play once). Default: -1

metadata?: Metadata

Metadata to include, see Metadata

optimize?: boolean

Whether to store each frame as the area that changed since the frame before and merge identical frames, like AnimationEncodeOptions.optimize. Default: true

quality?: number

1-100, scales the palette size from 8 colors (1) to 256 colors (90 and above). Default: 95