Brief description of the algorithm
- Set width and height of the font
- Choose a grayscale ramp
- Upload an image
- Convert it to grayscale
- Select tiles (of font’s width x height) from the image
- Compute the average brightness of each tile
- Map the brightnessof each tile to a character from the ramp
- Concatenate the characters to form the ASCII art
How 2 use
Requirements:
- Python
- PIL
Run the script with the following command:
python asciiart.py "path/to/image"
Have fun!
License
This project is licensed under the terms of the MIT license. See the LICENSE file.