Interface APNGAnimationEncoderOptions

interface APNGAnimationEncoderOptions {
    compression?: number;
    loopCount?: number;
    metadata?: Metadata;
    optimize?: boolean;
}

Hierarchy (View Summary)

Properties

compression?: number

The zlib compression level (0-9), higher is smaller but slower. Default: 1

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