TheZoraiz / ascii-image-converter

A cross-platform command-line tool to convert images into ascii art and print them on the console. Now supports braille art!
Apache License 2.0
2.05k stars 121 forks source link

ascii image converter saving formats #3

Closed danchengash closed 3 years ago

danchengash commented 3 years ago

i have a suggestion if there's a way for program can save the a colored ascii image. Such an improvement will be very great.

TheZoraiz commented 3 years ago

@Genialngash Thanks for the suggestion! Actually I thought of that before but chose to not implement it. The colors you see with the --color flag in the terminal are actually escape codes which the terminal converts into colored text. See this gist for more info.

If one were to save this output in a .txt file, it'd look something like this:

Now, you can copy and paste this from the terminal with a command like cat and retain the results, but that's probably not the usecase most people are looking for when they want to save ascii art.

I'll think about this and leave this issue open in case someone else can come up with a workaround.

TheZoraiz commented 3 years ago

@Genialngash The recently released version 1.3.0 now supports exporting ascii art as PNG images now. I believe that should cover the lack of an option for saving colored output. Will close this issue in a day.