Interface WebPAnimationEncoderOptions

interface WebPAnimationEncoderOptions {
    alphaQuality?: number;
    effort?: number;
    loopCount?: number;
    metadata?: Metadata;
    optimize?: boolean;
    quality?: number;
    sharpYuv?: boolean;
}

Hierarchy (View Summary)

Properties

alphaQuality?: number

Lossy frames: the alpha planes' quality (0-100), see WebPEncodeOptions.alphaQuality. Default: 100

effort?: number

How much effort lossy frames take (0-6), see WebPEncodeOptions.effort. Default: 2

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

Lossy frames (0-100), see WebPAnimationEncodeOptions.quality. Without it the frames are lossless

sharpYuv?: boolean

Lossy frames: libwebp's sharp YUV conversion, see WebPEncodeOptions.sharpYuv. Default: false