Skip to content

TudorRadoni/ASCII-Art-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ASCII Art Generator

Logo

Brief description of the algorithm

  1. Set width and height of the font
  2. Choose a grayscale ramp
  3. Upload an image
  4. Convert it to grayscale
  5. Select tiles (of font's width x height) from the image
    1. Compute the average brightness of each tile
    2. Map the brightnessof each tile to a character from the ramp
    3. Concatenate the characters to form the ASCII art

How 2 use

Requirements:

  • Python
  • PIL

Run the script with the following command:

python asciiart.py "path/to/image"

Have fun!

License

This project is licensed under the terms of the MIT license. See the LICENSE file.

About

Python script to generate ASCII Art from images

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages