Skip to content

Intermact API Reference / @intermact/react / encodeGif

Function: encodeGif()

encodeGif(frames, options?): Uint8Array

Defined in: react/src/export/gif.ts:150

Encode RGBA frames into an animated GIF89a byte stream. All frames must share the first frame's dimensions.

Parameters

frames

readonly RgbaFrame[]

options?

EncodeGifOptions = {}

Returns

Uint8Array

Intermact v1.0 — 文档覆盖 Phase-1 / Phase-2 / Phase-3(全阶段)