Converts every .png, .jpg, and .jpeg image in this repo into ASCII art.
For each image, the tool writes a matching .txt file next to the source image
and prints the ASCII output in the terminal.
- Python 3
- Pillow
run.sh creates a project-local .venv and installs Pillow there if it is
missing. It does not install packages into the system Python environment.
./run.shUse a custom output width:
./run.sh 160Show CLI help:
./run.sh --helpThe width is measured in terminal characters. Larger widths preserve more image
detail but create wider .txt files and terminal output.
./run.shRuns with the default width of 120 characters. This is a good starting point
for most images and terminal windows.
./run.sh 160Uses a wider ASCII output for more detail. Try this for high-resolution images or when viewing the result in a wide terminal.
./run.sh 80Uses a narrower ASCII output that is easier to read in smaller terminal windows. This is useful for quick previews or lower-detail output.
The tool always scans the full repo and converts every supported image it finds. Supported image types are:
.png.jpg.jpeg
Generated .txt files are saved next to their source images.
After saving each .txt file, the tool also prints the result in the terminal.
When multiple images are found, it pauses briefly between previews.