Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 589 Bytes

README.md

File metadata and controls

25 lines (16 loc) · 589 Bytes

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:

    from PIL import Image
    
    def asciiConvert(image, type, saveas, scale):
        # Function content...
    
    if __name__ == '__main__':
        asciiConvert("my-image.jpg", "jpg", "ascii-art.txt", "3")