@dusrel/image API
    Preparing search index...

    Function encode

    @dusrel/image-webp

    libwebp codec (WASM, lazy-loaded). Separate encode/decode entries. The WASM artifacts live in this package's codec/ folder and are built reproducibly from webmproject/libwebp v1.6.0 (see native/webp).

    • Encodes raw RGBA pixels (an ImageData) into WebP bytes with libwebp.

      Parameters

      Returns Promise<ArrayBuffer>