Interface AnimationEncodeOptions

The options all animation encoders have

interface AnimationEncodeOptions {
    metadata?: Metadata;
    optimize?: boolean;
}

Hierarchy (View Summary)

Properties

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