Get the latest tech news
Show HN: Rust -> WASM, K-Means Color Quantization Crate for Image-to-Pixel-Art
An open source "Rust ↦ WASM, k-Means Color Quantization" crate for Image-to-Pixel-Art conversions in the browser - gametorch/image_to_pixel_art_wasm
You will then need to run the wasm-bindgen CLI to create the JavaScript glue files (equivalent to what wasm-pack did automatically): In the WASM world wasm-bindgen requires cdylib so it can massage the output into a.wasm file plus the JS glue code. If you prefer a native command-line workflow (and want to batch-process many files) you can build the optional pixelate-cli binary.
Or read this on Hacker News