Skip to content

Create an ASCII representation of your favorite picture! 🐶

Notifications You must be signed in to change notification settings

vitosotdihaet/image-to-ascii

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image To ASCII

Outputs an image to a file in cwd named out-<current-time>.txt or to terminal drawn with ASCII symbols using python and pillow

To run the program just run the following lines in your terminal:

python3 main.py <path-to-image>

After doing so you can copy ASCII repesentation of your image from the file or terminal

Options

Flags:

-s/--save -- save ASCII art to a file

-c/--compression [FLOAT] -- determine how compressed your ASCII art compared to target image

-b/--inverse -- inverse brightness

-w/--width [FLOAT] -- change width of every pixel (because height of glyphs != its width)

Preview

From:

To:

?(/1111??11?111111111111111111111((111((((((((((((((((((((
11????????????????111?11111111111111111111111(((((((((((((
?????????????????????????11111111111(/|||/(111111(((((((((
?????????????????????????????11??(=*=(|++**=/111111(((((((
????????????????????????????????|*+|=|||/=***+111111((((((
??????????????????????????????1+"(Z#L|((|=*++"/11111111111
?????????????????????????????/":"=?v(w#@a*+++"/11111111111
????????????????????????????=",`,"""+=(1=*++**(1?????11111
??????????????????????????1+*+":-,.,,.,:*++*"/1???????????
????????????????????????v(***=|||=*""-_"*+*"|1????????????
????????????????????????/**+=||||||=**+++*"|11????????????
?????????????????????v1=**+=|||||=+*++++**|1??????????????
???????????????????v?/**++||||=++*+++++**/11??????????????
?????????????????v?(+**+=||||+**++***+**/11???????????????
???????????????v?(+***+|||||+*++++**+**/1?????????????????
?????????????v?/+**+++||||=+*++++++**=(1??????????????????
????????????v1=**+++||||=+*+++++++**|11???????????????????
????????????/**+*+|||=++++++++++**=(1?????????????????????
???????????=**++*===+*++++++++**+/1???????????????????????
?????????v/*+++*++++++++++****+/1?????????????????????????
?????????v|=+=|==+*++++++*"*=/1???????????????????????????
??????????1||||||=++*****+|(1?????????????????????????????
????????????1(/||===++=|(1????????????????????????????????
????????????????11111111??????????????????????????????????
((((((((((((((((1111111(((((((((((((((((((((((((((((((((((

About

Create an ASCII representation of your favorite picture! 🐶

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages