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.

online version: https://spritefusion.com/pixel-snapper

A tool for snapping pixels to a perfect grid. Designed to fix messy and inconsistent pixel art generated by AI.

pixel snapper

Current AI image models cannot understand grid-based pixel art.

  • Pixels are inconsistent in size and position.
  • Grid resolution may degrade over time.
  • Colors are not bound by any strict palette.

With Pixel Snapper:

  • ✅ Pixels are snapped to a perfect grid.
  • ✅ Grid resolution is consistent and can be scaled up to pixel resolution.
  • ✅ Colors are bound to a strict, quantified palette.
  • AI generated pixel art It needs to snap into the grid.
  • Procedural 2D art that doesn’t fit into a grid Like tilemap or isometric map.
  • 2D game assets and 3D textures It needs to be completely scalable.

Description

Pixel Snapper preserves as much detail as possible like dithering.

Pixel Snapper comes in two flavors

Rust must be installed on your machine.

git clone https://github.com/Hugo-Dz/spritefusion-pixel-snapper.git
cd spritefusion-pixel-snapper
cargo run input.png output.png

The command accepts an optional k-color argument:

cargo run input.png output.png 16
git clone https://github.com/Hugo-Dz/spritefusion-pixel-snapper.git
cd spritefusion-pixel-snapper

Create WASM module:

wasm-pack build --target web --out-dir pkg --release

Then use WASM module in your project.

Pixel Snapper is a sprite fusion project. Sprite Fusion is a free, web-based tilemap editor for game developers that supports a wide range of engines, including Unity, Godot, Defold, and GB Studio.

sprite fusion

MIT License Hugo Duprez



<a href

Leave a Comment