Convert images to ASCII art using Python! 🐍
Image2ASCII is a Python script that converts images into ASCII art. It reads an image file, resizes it, converts it to grayscale, and then maps the pixel values to ASCII characters. The resulting ASCII art is displayed on the console and saved to a text file. 🎨
- Convert images to ASCII art.
- Resize images to adjust the width.
- Convert images to grayscale for better representation.
- Save the generated ASCII art to a text file. 💾
- Python 3.x
- Pillow library (
pip install Pillow
)
-
Clone the repository:
git clone https://github.com/Kernel-rb/Image2ASCII.git
-
Navigate to the project directory:
cd Image2ASCII
-
Run the script:
python image2ascii.py
-
Follow the prompts to enter the path to the image you want to convert.
-
View the generated ASCII art on the console. 👀
-
Find the ASCII art saved in the file named
asciiArt.txt
in the same directory.
Contributions are welcome! If you have any ideas, enhancements, or bug fixes, feel free to open an issue or submit a pull request. 🎉