Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bmzhao/asciify
Turns images to Ascii Strings, displayable in your terminal!
https://github.com/bmzhao/asciify
Last synced: 11 days ago
JSON representation
Turns images to Ascii Strings, displayable in your terminal!
- Host: GitHub
- URL: https://github.com/bmzhao/asciify
- Owner: bmzhao
- Created: 2017-01-16T21:55:47.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-06T06:49:34.000Z (over 7 years ago)
- Last Synced: 2024-10-07T07:41:24.076Z (about 1 month ago)
- Language: Python
- Size: 133 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Asciify
A python script that converts an image to an ascii string, and prints it to the terminal.
Usage: `python asciify.py `
Ex:
Converts good old Bastion:
![Bastion](resources/bastion.jpg)to:
```
.....................................................................................;..............
...................................................xx#.x;x@xxx%%....................#;..............
..................................................xoxoox:..:ox%%:................@.............#::;;
.................................................x%#%##;;%@@%x%x#x....................x%o,#@:;.;xx..
.................................................@%%xxoxx#.;xo%%%%.................##.,;,,::::......
......................................:...%o.,....%%#xox;#.;xo%#%%..................,...:.:.........
..................................x:xx%,;...o;o;..%%#xox;#.;xo%@%%......................x...........
...............................oxxxxxxxo;...o,o...%%#xox;#.;xo%@%%..................%o@ox%..........
..............................x%xxxxxxxo;...o,o...%%#xox;#.;xo%@%%.................%%o;;ox;%........
..............................xxxxxxxxxo:...#x#...%%#xox;#.oxo%@%%..@..@,.........xoox;;;;;;........
..............................x#@@xxxxxxo;:.....:.%%#xoo..,,,,,,,,,,,,,;x;..:.,....#xo#%oxx#%.......
......#..o:.....x..............###@%%#@@%%o%;%@...%%#xo;,,,,,,:%####:,,,,o;;:#;....x;;:;;#;;%;......
..:o:::::::::o,,,,,,..........%@x%#%#%#%%%#.;.....%%#xoo;@.ox@x;ooooxx.,,.o;,;::...%xx#x%xoo;xx.....
o#::,%@xo@%%%%%%xxxxxxx.,......%@@@ooo@@@@%......%#%#xooo%.;x%:,o:;o;o.,,.,;,,;:x.%oox%x%xxo%##.....
%:,:x:;;o;o;xxxxx%#o@........:@.........,,,.,:....o###xoox.;xxx;::x%;o#,,,,,,:,,.x%oooooxo%ox,......
#::oo,,.,::;:;;;;xx;@.............,,,....,,,,,,,,.,,,xooo;.:.@%;ooo%%##,,,,,:,,,,%xxxxoooxx%........
,:,:%ooxx%%x%xxxxo............,,,,;...x#........o%%xx....x%@:oo;:::;o%%,,,.,,::,,@##xxxxx,..........
.:,:%%%%##%%%%.....,.......,,,,,,,.##%:....::::%,;%o:@@%#:ooooo:o:xox@#,,,.,,,,,xo;%xxx#ox..........
.o::%%;;;#o.......;;;;;:,,,,..;%,......:::::::::::,,@#;oooooooo%oooxx%#:,,,,,@;oxxo;##@x%#o;........
.o::%%;;;o;;@#%#%:@#oox%;.:o%%x....;::;:::%::::ox;;%%ooooooooxxox%x#%%@@,,,,,xxxxxoooooooo;;........
.;::%%%@.,,,oo%x:,o;;:xxo#:::;;.:::::::x:o::%:%:x;o#%oooooooo%%%#%x%%%%@.,,,,xxxxx;oxxoo;%oo........
.:x:;%:;%%;;;;;;;%x:;;.xox:x:;;;o::::::;;x:%x;;;;:@x#%xx%%%%@@@xx#%xxxx%,,,.xxxxxxooooxx;ooo........
.#:o:x@;;;;;;;;;;;;;;;.@xx#;;;;;;:%::::::::;;;;;;#####%######@%xx;%%oxx##:::@xxxxxooo%oox%oo........
..;o;oo:;;;;;;;;;;;;;:;,xx%;;;;ooxoo:::::;;;;;o%###@@######%%#x#%xx%oo%%%:::@xxxxxooooooooxo........
..oo;ooo%@o%x#oooooooooo;@%%%%#xoooooooooo;;;x#####@######xxxo#%xxx%oox%%:::ooxxxxooxxx%##o#........
....:#%%#%%%#;xoooooooooooo#;o%%%%%%#####o;@#####%%%%####@%xox#o%oooxooo%%%%%#xx%oooooooooo.........
.....x##%%%x%%###%#@#######%%%%@@@@@%#%x@####@#%%%%%%%%%%%oo%;oo%xxx%xoxx%%xx%xx%ooooooooo..........
....o#%%%%#%##%o%#%##xooooo%%%@##@@@%%%%#%%#@xo####%%%%###%ooooxx%xxxxxoxooooxxxxooooooooo..........
```Requires [Pillow to be installed](https://pillow.readthedocs.io/en/4.0.x/installation.html).