@ceyhuncicek/pixel-snap-cli
v1.0.1
Published
Pixel-snap PNGs in a folder: reduces to pixel-art resolution then upscales back to original size via nearest-neighbor.
Downloads
12
Maintainers
Readme
pixel-snap-cli
CLI tool to pixel-snap all PNGs in a folder. Reduces each image to its natural pixel-art resolution using spritefusion-pixel-snapper, then upscales back to the original size with nearest-neighbor interpolation, giving you clean, crisp pixel art at your original dimensions.
Usage
npx @ceyhuncicek/pixel-snap-cli ./my-folderOr install globally:
npm install -g @ceyhuncicek/pixel-snap-cli
pixel-snap ./my-folderHow it works
- Finds all
*.pngfiles in the given folder - Runs the Rust pixel-snapper binary on each (reduces to pixel-art resolution)
- Upscales results back to original dimensions via Python/Pillow nearest-neighbor
- Replaces the originals in-place
Platform support
- macOS arm64: pre-built binary included, no setup needed
- Other platforms: builds from source automatically on first run (requires Git; Rust and Pillow are auto-installed if missing)
Requirements
- Node.js 16+
- Python 3 with Pillow (auto-installed if missing)
