Skip to content

muhammetcnli/image-to-ascii-art

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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")

About

Converts any given image to ascii art

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages