A tool that creates ASCII art from an image, and outputs an ASCII image.
- First convert the whole image to a grayscale to simplify the image data
- Split the image into tiles with size m x n
- Assign each tile with an ASCII value
- Create the image from ASCII value and resize it to the original size

- Clone this repo:
git clone https://github.com/phuc50cm/Image-to-ASCII-art - Change dir to the repo, create a virtual environment, and active it:
cd Image-to-ASCII-artpython3 -m venv venvsource venv/bin/activate - Install requirement library:
pip install -r requirements.txt
After installation, run the command line to convert
Usage: python convert.py [-h] [-f FILE] [-c COLS] [-l {10,70}]
Options:
-h, --help show this help message and exit
-f FILE, --file FILE the file being converted
-c COLS, --cols COLS the resolution of the resulting image
-l {10,70}, --level {10,70} grayscale level
Example:
python convert.py -f "my_image.png" -c 700 -l 70
Note:
- If you don't specify the -l option, it will take the default value (70)
- The resulting image will be "output.png"

