Re:ASCII generator: image to text, image to image, video to ...
by Theodores on Sunday February 03, 2019 @10:33AM
(#19070091)
Ah... the things that others don't see. Lenna - the classic image, the distinctive Ubuntu of the terminal window, as per the original article.
I have not worked it out yet but it must be possible to use this type of thing - ASCII art - for those images that you can download inline with a web page to show before the main images download. As per the BBC that always include an inline image with a news story download so you have something to look at on a 3G connection whilst the rest downloads.
Re:ASCII generator: image to text, image to image, video to ...
by dukoid on Sunday February 03, 2019 @10:54AM
(#19070242)
For the web image preview use case, it would probably be quite hard to beat data urls: color encoding would be quite verbose, and getting consistent character availability and widths will be tricky, too...
Re:ASCII generator: image to text, image to image, video to ...
by classichasclass on Sunday February 03, 2019 @06:09PM
(#19072821)
It's a good start. However, some dithering options, even a simple Floyd-Steinberg implementation, would probably help improve the quality a bit. This is a tool I wrote a while back that does a similar thing and there are output examples at the bottom off the classic Lena image which can give you an idea of the difference: https://www.floodgap.com/software/ppmascii/
Re:ASCII generator: image to text, image to image, video to ...
by owlninja on Sunday February 03, 2019 @07:22PM
(#19073086)
Well said. I also hate when someone shows something on HN and everyone just replies with links to another similar project...the author almost never says they are trying to beat some other project or one-up anyone!
(it uses a block graphics character matching algorithm to get a slightly better resolution than 2 pixel per character)
I have not worked it out yet but it must be possible to use this type of thing - ASCII art - for those images that you can download inline with a web page to show before the main images download. As per the BBC that always include an inline image with a news story download so you have something to look at on a 3G connection whilst the rest downloads.