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.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Pixel

Pixel

Photo of Art

Art

Photo of Image

Image

Related news:

News photo

Landmark deepfake law aims to give Denmark's citizens rights over their image, voice, and likeness

News photo

That's not a typo: new T-Mobile deal gets you a free Pixel phone AND earbuds, no trade-in required

News photo

A new Google Pixel 10 display leak makes me feel left out, but there's still hope