November 30, 2025

Bananas to bricks: snap that grid!

Show HN: Fixing Google Nano Banana Pixel Art with Rust

Rust tool cleans messy AI pixels as commenters roast Nano Banana, debate watermarks

TLDR: A Rust tool called Pixel Snapper snaps AI-made pixel art to a clean grid and palette. Commenters cheer the fix, argue watermark vs. model confusion, compare rival tools, and roast Nano Banana’s fake checkerboards—useful for game assets and anyone sick of wobbly pixels.

Hacker News just met Pixel Snapper — a Rust-made “pixel janitor” that snaps chaotic AI art back onto a clean grid — and the comments instantly turned into a pixel courtroom. The crowd loves the promise of perfect grids and strict color palettes, but they want receipts: threeducks is demanding a play-by-play on “how does it detect the correct pixel size” and how it decides the colors for misaligned blobs. Translation: cool demo, now show your homework.

Then the tool Olympics began. razster waved an alt: Z-Image plus Pixel LoRA (a small AI add-on) that “keeps pixels matched with the grid,” while veteran vunderba name-dropped unfake and sd-palettize and begged for a clear comparison. Cue the drama: cipehr tossed a spicy banana — is Google’s SynthID watermark link secretly scrambling pixels, or do the models simply not “get” pixel art? The thread split between “watermark gremlins” and “AI doesn’t understand grids.”

Comedy peak: 29athrowaway roasted Nano Banana for faking transparency — “hallucinated checkerboard background” memes everywhere. People are joking about “banana pixels in jail,” but they’re also serious: game devs want clean, scalable tiles, and this tool’s CLI and web (WASM) versions look ready to help. Verdict: hype mixed with homework — fix our pixels, and show us the benchmarks.

Key Points

  • Pixel Snapper snaps pixels to a perfect grid and enforces a consistent, scalable grid resolution.
  • The tool quantizes colors to a strict palette while preserving details such as dithering.
  • It targets cleanup of AI-generated pixel art and other procedural 2D art, plus scalable 2D game assets and 3D textures.
  • Available as a Rust-based CLI and a WebAssembly module, with an online demo available.
  • Open-sourced under the MIT License as part of the Sprite Fusion project, which supports engines like Unity, Godot, Defold, and GB Studio.

Hottest takes

"I've found it works fairly well at keeping the pixels matched with the grid" — razster
"Is it possible that some of the reason pixels are messed up is because of the watermarking?" — cipehr
"it creates a hallucinated checkerboard background" — 29athrowaway
Made with <3 by @siedrix and @shesho from CDMX. Powered by Forge&Hive.