@dusrel/image API
    Preparing search index...

    Function encode

    @dusrel/image-jxl

    JPEG XL codec (libjxl, WASM, lazy-loaded). Separate encode/decode entries. The WASM artifacts live in this package's codec/ folder and are built reproducibly from libjxl v0.11.2 (see native/jxl).

    EXPERIMENTAL: browser JPEG XL decode support is still limited; use only where you control the viewing environment. Single-threaded by construction (ADR-0006): no SharedArrayBuffer or COOP/COEP requirement.

    • Encodes raw RGBA pixels (an ImageData) into a bare JPEG XL codestream with libjxl.

      Parameters

      Returns Promise<ArrayBuffer>