/asciify

ascii art generator

Primary LanguagePython

ASCII Art generator

converts an image of pixels to a grid of characters

written in python, uses Pillow

py asciify.py images/shocked-pikachu.png 100 --invert

+++++++++###++++++##             +###++++++++++++++++++++++++++++++++++++##+++++++++++++++++        
+++++++++##++++++++#+               +++++++++++++++++++++++++++++++++++++##++++++++++++             
++++++++##++++++++++#+                 +###+++++++++++++++++++++++++++++++##++++++                  
+++++++###++++++++++++++                 ++##+++++++++++++++++++++++++++####++                      
++++++###++########+++##+                   ++#########+++++++++++++++++                           +
++++++####################+                                                                       ++
+++++#######################+                                                                  +++++
++++#########################+                                                              +++#####
++++###########################++++                                                       ++########
+++##############################+                                                     +++##+#######
+++#############################+                                                   ++######+#######
++##############################+                                                    ++####++#######
++#############################+        +++#+                       +++##+            +####+++++++++
+##########################+###        ++ +##+                      +  ###+            +##++++++++++
##########################++##+        +#####+                      +#####+             ##++++++++++
#########################+++##+          +++++                        ++++              +#++++++++++
#######################++++##+                     ++#++                                 +++++++++++
#####################++++++###+++                    +++                                 +++++++++++
###################+++++++####+++#++                                        ++++++++      ++++++++++
#########++++++++++++++++####+++++++                                       ++++++++++     +#++++++++
################+++++++++####+++++++               ++###++++               ++++++++++      +#+++++++
#######################+####+#+++++               +##++    +++             +++++++++       +#+++++++
++#########################+  ++                  +#+       ++               ++++++         +#++++++
+##########################+                      +++       ++                               #++++++
+++++#######################+                       ++++++++++                               +#+++++
####++++++++++++++++++++++++#+                                                               +#+++++
#####++++++++++++++++++++++++#+                                                               +#++++
###########++++++++++++++####+++                                                              +##+++

py asciify.py images/github-logo.png 40 --dots --invert

⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⣀⣤⣤⣤⣤⣤⣤⣀⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣶⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣾⣿⡟⠛⠻⣿⡿⠿⠿⢿⣿⠟⠛⢻⣿⣷⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢠⣿⣿⣿⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢸⣿⣿⣿⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣾⣿⣿⡿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢿⣿⣿⣧⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣿⣿⣿⣇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⣿⣿⣿⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢻⣿⣿⣿⣄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⣿⣿⣿⡏⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⢿⣯⡙⢻⣷⣦⡤⠀⠀⠀⠀⣤⣴⣾⣿⣿⣿⡿⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠻⣿⣄⠉⠉⠁⠀⠀⠀⠀⢸⣿⣿⣿⣿⠟⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠈⠛⠿⣿⡇⠀⠀⠀⠀⢸⣿⠿⠛⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀
⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀