https://github.com/muhammetcnli/image-to-ascii-art
Converts any given image to ascii art
https://github.com/muhammetcnli/image-to-ascii-art
Last synced: about 2 months ago
JSON representation
Converts any given image to ascii art
- Host: GitHub
- URL: https://github.com/muhammetcnli/image-to-ascii-art
- Owner: muhammetcnli
- Created: 2024-05-09T13:36:01.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-05-09T14:01:33.000Z (about 1 year ago)
- Last Synced: 2024-05-10T15:09:41.955Z (about 1 year ago)
- Language: Python
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ASCII Art Converter
This Python script converts an image file to ASCII art. The resulting ASCII art is saved to a text file.
## Usage
1. Install the `PIL` library:
```
pip install pillow
```2. Rename your image to "my-image" and replace it with the allready given image.
3. Use the `asciiConvert` function to convert an image to ASCII art:
```python
from PIL import Imagedef asciiConvert(image, type, saveas, scale):
# Function content...if __name__ == '__main__':
asciiConvert("my-image.jpg", "jpg", "ascii-art.txt", "3")
```