zenginhasanberk / image-to-ascii

Convert your images to ASCII using the command line.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image to ASCII converter for the command line

Requirements

Python's Pillow and numpy packages.
To get these packages, run pip3 install Pillow numpy
I recommend you run the command above in a virtual environment created with python3 -m venv {environment_name}

Usage:

Clone the repo. Then, run python3 image_to_ascii {input_filename} {height} {optional:output_filename}
If the output_filename is specified, then the ascii art is written onto that file. Otherwise, ascii art gets printed on the terminal.

Examples:

Below are two example output of the code. I used arbitrary heights with these two images, so a different height may result in better quality.

My profile picture:

dog-in-military-outfit

profile_picture

Walter White:

Walter_White_S5B

walter

About

Convert your images to ASCII using the command line.


Languages

Language:Python 100.0%