RameshAditya / asciify

Convert any image into ASCII Art.
1.14k stars 167 forks source link

How to remove those background white dots that appear in the ascii version? #32

Open ishank-dev opened 4 years ago

m-simonelli commented 3 years ago

Somewhat late, but if you have sed installed you can pipe the output of asciify into sed to replace .'s with spaces:

python3 ./asciify.py ./image.png | sed 's/\./ /g'
RameshAditya commented 3 years ago

Thanks for sharing a solution. While the way to change the actual implementation would be to replace ASCII_CHARS[-1] with a blank space character, the solution described above would be better since it's entirely user-facing.