@dusrel/image API
    Preparing search index...

    Function initEncode

    @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.

    • Loads and instantiates the encoder WASM ahead of first use.

      Parameters

      Returns Promise<void>