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

    InterfaceGIFEncodeOptions

    interface GIFEncodeOptions {
        colors?: number;
        dither?: DitherMethod;
        ditherStrength?: number;
        metadata?: Metadata;
    }

    Hierarchy (View Summary)

    Index
    colors?: number

    The maximum colors in each frame's palette (2-256, including transparency). Frames with fewer colors keep them exactly; otherwise ImageScript chooses representative colors

    256

    dither?: DitherMethod

    How to spread small color changes across nearby pixels to make gradients look smoother with few colors, see DitherMethod

    'floyd-steinberg'

    ditherStrength?: number

    How strongly to apply dithering: 0 disables it (like 'none'); 1 applies it fully

    0.85

    metadata?: Metadata

    Metadata to include, see Metadata