@dusrel/image API
    Preparing search index...

    Function decode

    @dusrel/image-gif

    GIF encode / decode / optimise (Rust gif crate, WASM, lazy-loaded). Animated GIFs included. The engine is the permissive replacement for gifsicle (GPL-2.0), dropped on licence grounds 2026-11-07 — this package stays MIT.

    The WASM artifact lives in this package's codec/ folder and is built reproducibly from native/rust (CODEC=gif).

    • Decodes a GIF into full-canvas RGBA frames. Frames stored as sub-rectangles are composited onto a shared canvas (offsets honoured, keep-disposal semantics — see the README's notes).

      Parameters

      • data: ArrayBuffer | Uint8Array<ArrayBufferLike>

      Returns Promise<DecodedGif>