| Crates.io | px2ansi-rs |
| lib.rs | px2ansi-rs |
| version | 0.1.1 |
| created_at | 2026-01-24 00:04:50.699595+00 |
| updated_at | 2026-01-24 13:45:24.618232+00 |
| description | Convert pixel art images to ANSI terminal art (Rust port) |
| homepage | |
| repository | https://github.com/saylesss88/px2ansi-rs |
| max_upload_size | |
| id | 2065734 |
| size | 111,059 |
A high-performance Rust port of px2ansi.
px2ansi converts pixel art images into ANSI escape codes for display in
modern terminals. It uses 24-bit truecolor and unicode half-block characters
(▀ / ▄) to render images with precision.
It is significantly faster than the original Python implementation and ships as a single, static binary.
git clone https://github.com/yourusername/px2ansi-rs
cd px2ansi-rs
cargo install --path .
crates.io
cargo install px2ansi-rs
CLI
Convert an image and print to stdout:
px2ansi path/to/image.png
Save output to a file:
px2ansi image.png -o art.txt
Try it out!
You can test it right now with the included test.png (a small pixel art
example):
px2ansi tests/test.png