Skip to content

kin5/ascii-factory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ascii-factory

ascii-factory is a Python program that takes an image file and converts it to ASCII art (as best as it can). Just a fun project that I wanted to try out. Will be returning to periodically as I can.

The program will also tell you the average Red, Green, and Blue values in the image as well as the average color in the entire image. Might be helpful for some.

Dependencies

PIL (Python Imaging Library)

Usage

Very simple. Enter a filename, then hit enter. Then enter a value for the width and height to be scaled down by, keep it tight. Watch as it turns to ASCII art before you.

Example

Passing in the github.jpg provided in the repo and using an x scale of 10 and a y scale of 20, we receive this beautiful output:

........................................................
........................................................
........................................................
........................................................
.......................-#########%......................
..................####################:.................
...............##########################i..............
.............###############################............
...........##################################%..........
..........#######......#........'#......#######.........
.........########.......................########........
........#########.......................########'.......
........########.........................########.......
.......I#######...........................#######.......
.......########...........................#######.......
.......########...........................#######.......
........########........................%########.......
........#########.......................#########.......
.........##########..................`##########........
.........%####..%#######........%##############.........
...........#####..#####..........-############..........
............:####.................##########............
..............-########...........########..............
.................######..........%#####%................
.....................%#...........#`....................
........................................................
........................................................
........................................................

State of the art, I know.

About

An image to ASCII art Python program

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages