@dusrel/image API
    Preparing search index...

    Function decode

    • Decodes QOI bytes into an ImageData (always RGBA8; RGB sources are expanded with alpha 255 by the Rust glue). The glue returns an 8-byte little-endian width/height prefix followed by RGBA bytes.

      Parameters

      • data: ArrayBuffer | Uint8Array<ArrayBufferLike>

      Returns Promise<ImageData>