Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/l5n0/image2ascii
https://github.com/l5n0/image2ascii
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/l5n0/image2ascii
- Owner: l5n0
- Created: 2023-06-05T18:25:34.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-15T23:07:30.000Z (5 months ago)
- Last Synced: 2024-06-16T00:22:04.530Z (5 months ago)
- Language: Python
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Image2ASCII
This project is a Python program that converts images into ASCII art.
## Requirements
- Python 3.x
- Pillow library (installed via `pip install Pillow`)## Installation
1. Clone the repository
2. Navigate to the project directory:
```bash
cd Image2ASCII
```3. Install Pillow library:
Ensure you have pip installed. If you don't have pip installed, you can download the get-pip.py script from https://bootstrap.pypa.io/get-pip.py. Save it to a directory, navigate to that directory in the command prompt, and run `python get-pip.py`.
Run the following command to install the Pillow library:
```bash
pip install Pillow
```4. Execute the program:
```
python script.py image_path.jpg
```Replace `image_path.jpg` with the actual path to your image file. The program will resize the image and generate the corresponding ASCII art.
5. Console output:
The generated ASCII art will be displayed in the console.
6. Saving ASCII art to a file (optional):
During the program execution, you will be prompted if you want to save the ASCII art to a file. If you choose to save it, provide a file name when prompted, and the ASCII art will be saved to that file.