项目作者: Gopalkataria

项目描述 :
ASCII art from images
高级语言: Python
项目地址: git://github.com/Gopalkataria/images_to_ascii.git
创建时间: 2021-03-11T08:47:25Z
项目社区:https://github.com/Gopalkataria/images_to_ascii

开源协议:

下载


images_to_ascii

converting images to ascii for some random fun.

works by first making the image grayscale, and finding a corresponding character for each pixel.


output in html and txt format


just climb into this directory and

./art.py < image-name > < file-name > < (optional) characters >

image-name = name of the input image , recommended size beloxe 400x400 pixels, but any png or jpg will do


file-name = output file name without extension, automatically a proper html and txt file will be generated


characters = a string with characters, eg “$%^&- “ to use in ascii art. order can be random, but characters will be assigned in order of descending level of darkness, so first characters replace dark colors, with the last ones replace the lighter ones.


characters can be omitted, in that case a built in one will be used

Its just a fun project and I have no intentions to maintain it, so don’t create pull requests. feel free to fork it and make it your own