Show HN: Rust ↦ WASM, K-Means Color Quantization Crate for Image-to-Pixel-Art
10 months ago
- #pixel-art
- #Rust
- #WebAssembly
- Pixel-art converter available at https://gametorch.app/image-to-pixel-art
- Free, no sign-up required, runs entirely in the browser
- Uses Rust → WebAssembly to convert images to low-color pixel-art
- Features include K-means palette extraction, transparency handling, and down-sampling
- Public API allows for palette specification and returns PNG-encoded bytes
- Requires Rust nightly or stable (≥ 1.70) and wasm-pack for compilation
- Can compile directly via Cargo with specific backend flags
- Output includes WebAssembly binary and JavaScript wrapper
- Example usage provided for integrating into web projects
- Project released under MIT license, developed quickly with o3