@dusrel/image API
    Preparing search index...

    Function initEncode

    @dusrel/image-jpeg

    MozJPEG codec (WASM, lazy-loaded). Separate encode/decode entries. The WASM artifacts live in this package's codec/ folder and are built reproducibly from mozilla/mozjpeg v4.1.5 (see native/mozjpeg).

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

      Parameters

      Returns Promise<void>