Show HN: Fixing Google Nano Banana Pixel Art with Rust (github.com)

🤖 AI Summary
Pixel Snapper is a new Rust-based tool from the Sprite Fusion project that automatically snaps messy, AI-generated pixel art onto a perfect grid. It addresses common failure modes of current image models—irregular pixel sizes and positions, drifting grid resolution, and non-quantized colors—by snapping pixels to a consistent grid, enforcing a strict palette, and preserving visual details like dithering. That makes AI outputs usable as true pixel art assets for games and scalable 2D/3D textures where exact alignment and palette fidelity matter. Technically, Pixel Snapper is distributed as a CLI Rust program (git clone https://github.com/Hugo-Dz/spritefusion-pixel-snapper.git; run with cargo run input.png output.png [k-colors]) and can be compiled to WebAssembly with wasm-pack build --target web --out-dir pkg --release for web integration. It’s open-source under the MIT license and intended to slot into Sprite Fusion’s tilemap editor and broader game asset pipelines (Unity, Godot, Defold, GB Studio, etc.). For AI/ML practitioners and game developers, it provides a lightweight post-processing step to convert generative outputs into deterministic, tile-friendly assets—bridging the gap between imperfect generative models and production-grade pixel art workflows.
Loading comments...
loading comments...