A program that converts images into ASCII
- full 24-bit ANSI color support
- edge detection for enhanced detail
- percentile-based contrast stretching
- bayer matrix dithering for smooth gradients
- adjustable gamma for brightness tuning
cc -Wall -O2 -o aimg main.c -lm./aimg <image> [options]| Option | Description | Default |
|---|---|---|
-w <width> |
Output width in characters | 120 (auto-detects terminal) |
-a <aspect> |
Character aspect correction | 0.5 |
-g <gamma> |
Gamma correction | 0.8 |
-i |
Invert character ramp | Disabled |
--color |
Enable 24-bit color output | Enabled |
--no-stretch |
Disable contrast stretching | Disabled |
--lo <pct> |
Low percentile cutoff (0-49) | 1 |
--hi <pct> |
High percentile cutoff (51-100) | 99 |
--dither <n> |
Dither strength (0-12) | 4 |
--edge |
Enable edge enhancement | Disabled |
--edge-mix <0..1> |
Edge mixing ratio | 0.5 |
--edge-gain <x> |
Edge gain multiplier | 1.0 |