← 输入框|imagescript.dev|刷新
ImageScript v4.1.0
    Preparing search index...

    InterfaceAnimationEncodeOptions

    The options all animation encoders have

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

    Hierarchy (View Summary)

    Index
    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. The exception is GIF, which has no partial transparency: without optimize, a semi-transparent pixel becomes opaque or transparent in its own frame, with it the frames are composited first

    true