Welcome to my ASCII Art Generator project! This repository contains code that allows you to transform images into captivating ASCII art. This project is based on the tutorial by Robert Heaton, which you can find here.
This project involves the following steps:
-
Load Images: I use an image processing library to load images and access their pixel data.
-
Convert to Brightness: I transform the RGB tuples of pixels into single brightness values.
-
ASCII Transformation: I map the brightness values to ASCII characters, creating an ASCII representation of the image.
To run this project, follow these steps:
-
Clone this repository:
git clone https://github.com/joethesaint/ascii-art-generator.git
-
Install the required library. For Python, you can use Pillow:
pip install Pillow
-
Place your image in the repository directory and update the image path in the code.
-
Run the Python script:
python ascii_art_generator.py
ascii_art_generator.py
: The main script that performs image loading, brightness conversion, and ASCII transformation.
In this project, I've used the following ASCII character set for mapping brightness to characters:
`^",:;Il!i~+_-?][}{1)(|\\/tfjrxnuvczXYUJCLQ0OZmwqpdbkhao*#MW&8%B@$
Upon running the script, you'll see the ASCII representation of your image printed in the terminal. Experiment with different images and character sets to create unique ASCII art!
This project is based on Robert Heaton's tutorial on Programming Projects for Advanced Beginners: ASCII Art.
This project is licensed under the MIT License.