A command-line tool to convert images into pixel art using different retro color palettes like NES, GameBoy, CGA, and more.
git clone https://github.com/devflorez/pixelart-cli.git
cd pixelart-clinpm installnpm run buildnpm linkpixelate -i <input> -o <output> [options]pixelate -i ./input.jpg -o ./output.png -s 12 --style gameboy --previewpixelate -i ./images -o ./pixelated-images -s 10 --style pastel --preview| Option | Description | Default |
|---|---|---|
-i, --input |
Path to the input image or folder (required) | |
-o, --output |
Path to the output image or folder (required) | |
-s, --size |
Pixel size for downscaling | 10 |
--style |
Color palette to use (see below) | normal |
--preview |
Automatically open the result after processing | false |
normal(full color)nesgameboygrayscalecgaamigacommodore64sepiasolarizedpastel
You can also extend the palette list in
src/palettes.ts
Run tests using Vitest:
npm run testTo start development without building:
npm run start -- -i ./input.jpg -o ./out.png --style nesPull requests are welcome! Feel free to suggest features, palettes or bug fixes.
MIT License