@dusrel/image API
    Preparing search index...

    Function quantizeToImageData

    @dusrel/image-quantize

    Colour quantization via the Rust quantizr crate (WASM, lazy-loaded): reduce an image to a palette of at most 256 colours plus per-pixel indices — the preparation step behind small palette PNGs. The engine is MIT-licensed quantizr, chosen to replace GPL libimagequant so this package stays MIT (docs/adr/0003 addendum).

    • Quantize and immediately expand back to an ImageData.

      Parameters

      Returns Promise<ImageData>