ansimake
Quickly convert pixel images of ANSI art created with AI to actual ANSI art.
Features
- 🎨 True Color Support - Full 24-bit RGB color rendering
- 🖼️ Multiple Formats - Supports PNG, JPEG, GIF, and more
- 📐 Smart Sizing - Automatically fits to terminal size or custom dimensions
- 🎭 Two Rendering Modes:
- Half-block mode (default) - Uses foreground and background colors for higher detail
- Block mode - Uses full blocks
- 🎯 Color Quantization - Optional CIELAB-based color reduction for smoother output
Installation
Or build from source:
Usage
Basic Usage
Command Line Options
)
)
)
Examples
The goal was to built a tool that converts an ansi-looking source image to its actual ANSI output, and so it works best in these conditions
Before
After
# Convert with custom width
# Black and white conversion
# Use block mode for simpler rendering
# Color quantization for smoother output
Library Usage
use ;
Requirements
- Rust 1.70+ (for building from source)
- A terminal with true color support (most modern terminals)
License
MIT License - see LICENSE file for details
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.