Fixes and enhances AI-generated pixel art. Cleans up artifacts, aligns pixels, and corrects colors for game-ready sprites.
38 stars on GitHub — actively maintained utility tool
Available as an npm package: npm install fixelart
Fixes AI-generated pixel art using strategies like majority and average color sampling
fixelart is a TypeScript library that cleans up AI-generated pixel art by intelligently downscaling and recoloring blocks using various mathematical strategies. Install it via npm (npm install fixelart), provide an RGBA pixel buffer, choose a strategy (e.g., majority, average, geometric mean), and optionally adjust tolerance or shrink output. The library returns a fixed pixel art image, ideal for game developers who need to polish AI-generated sprites or tiles.
Yes, fixelart can be used on any pixel art image, but it's specifically designed to remove color bleeding and blurring artifacts common in AI-generated pixel art.
fixelart is a library, so you can write a script to loop through multiple images and call `fixImage` for each one. Batch processing is straightforward.
fixelart works with raw RGBA pixel data, so it can accept input from any image format (PNG, JPG, etc.) as long as you decode it to RGBA first. The example in the README uses `pngjs` for PNG files.
Install Fixelart to get started:
Or visit the project page for detailed setup instructions.