A Python script that converts an image into ASCII art and allows saving it as either a text file (.txt) or an image (.jpg).
- Converts an image to ASCII art.
- Allows saving the output in JPG or TXT format.
- Automatically resizes the image while maintaining proportions.
- Uses an ASCII character palette to represent grayscale levels.
Make sure you have Python 3 installed along with the following dependencies:
pip install pillow numpy
- Run the script:
python ascii_converter.py - Follow the instructions:
- Enter the path to the image you want to convert.
- Choose the output format (JPG or TXT).
- Enter the name of the output file.
Output (ASCII):
@@@@@@####++++====----::::..
@@@@@###++++====----::::..
@@@@###++++====----::::..
@@@##++++====----::::..
@@##**+++====----::::..
- ascii_converter.py (Main script)
- example.jpg (Pfinal.jpg)
- README.md (Documentation)
- Modify ASCII_CHARS in the script to change the character palette.
- Adjust new_width=100 to change the ASCII art size.
- Support for color ASCII art.
- GUI for easier use.
This project is licensed under the MIT License.
