A Python project that converts images into ASCII art. This tool transforms any image into a text-based representation using character palettes.
The ASCII Art Generator processes images through several stages:
- Image Loading & Validation: Checks file existence, permissions, and format support
- Preprocessing: Converts to grayscale and resizes for optimal ASCII conversion
- Pixel Analysis: Extracts brightness data from the processed image
- ASCII Mapping: Converts brightness values to ASCII characters
- Output Handling: Displays results in terminal and saves to text files
- Output options (console display + file saving)
- Customizable ASCII character palettes
- Adjustable output width/size
- Comprehensive error handling
- Support for common image formats (JPEG, PNG, BMP, etc.)
ascii_art_generator/
├── src/
│ ├── image_processor.py
│ ├── ascii_converter.py
│ └── output_handler.py
│
├── images/ test images
├── outputs/ output.txt
├── main.py
├── requirements.txt
└── README.md
python -m venv ascii_env
ascii_env\Scripts\activate
source ascii_env/bin/activate
pip install -r requirements.txt
python main.py