Hugo-Dz/spritefusion-pixel-snapper
A tool to snap pixels to a perfect grid. Designed to fix messy and inconsistent pixel art generated by AI.
What it solves
AI-generated pixel art often suffers from inconsistent pixel sizes, misaligned grids, and messy color palettes that do not adhere to the strict requirements of game development. This tool automatically cleans up these images by snapping pixels to a perfect grid and quantizing colors to a specific palette.
How it works
The tool processes images by detecting the underlying grid structure and realigning pixels to fit that grid perfectly. It supports color quantization to a set number of colors or a custom-defined hex palette. It is available as a native command-line interface (CLI) tool written in Rust and as a WebAssembly (WASM) module for integration into web applications.
Who it’s for
It is designed for game developers and digital artists who use AI to generate assets but need them to be technically compliant for use in 2D games, tilemaps, or 3D textures. It is also useful for anyone needing to standardize procedural 2D art.
Highlights
- Snaps inconsistent pixels to a clean, uniform grid.
- Supports automatic or manual grid resolution scaling.
- Provides color quantization to a specific palette or custom hex list.
- Preserves fine details like dithering during the conversion process.
- Offers both a CLI for batch processing and a WASM module for browser-based integration.
Related
- Project
- Project
- Project
- Project
- Project