An open API service indexing awesome lists of open source software.

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

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 Image

def asciiConvert(image, type, saveas, scale):
# Function content...

if __name__ == '__main__':
asciiConvert("my-image.jpg", "jpg", "ascii-art.txt", "3")
```