Interface GIFEncodeOptions

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

Hierarchy (View Summary)

Properties

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, which usually makes files a lot smaller. The file shows the same animation either way, but only decodes to the same frames without it, which also encodes faster when little changes. Default: true

quality?: number

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