@dusrel/image API
    Preparing search index...

    Function initEncode

    @dusrel/image-avif

    libavif + libaom codec (WASM, lazy-loaded). Separate encode/decode entries. The WASM artifacts live in this package's codec/ folder and are built reproducibly (see native/avif: libaom v3.12.1, libavif v1.4.2, emsdk 3.1.66). Single-threaded by default — the threaded encoder stays opt-in (cross-origin isolation required).

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

      Parameters

      Returns Promise<void>