News for hackers. Stuff that matters.
Re:ASCII generator: image to text, image to image, video to ... by dukoid on Sunday February 03, 2019 @10:23AM (#19070032)
If you'd like to actually quickly preview images in the terminal, you might be interested in my tiv app: https://github.com/stefanhaustein/TerminalImageViewer

(it uses a block graphics character matching algorithm to get a slightly better resolution than 2 pixel per character)

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 AnnoyingSwede on Monday February 04, 2019 @05:53AM (#19075322)
Nice!! Installing
Re:ASCII generator: image to text, image to image, video to ... by Klasiaster on Sunday February 03, 2019 @03:07PM (#19071883)
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 aboutruby on Sunday February 03, 2019 @10:19AM (#19070003)
Related: http://caca.zoy.org/wiki/libcaca (even works with VLC to watch movies)
Re:ASCII generator: image to text, image to image, video to ... by allenu on Sunday February 03, 2019 @10:56AM (#19070254)
This reminds me of AA-lib, which has been around for a while: http://aa-project.sourceforge.net/gallery/
Re:ASCII generator: image to text, image to image, video to ... by peterisza on Sunday February 03, 2019 @09:36AM (#19069737)
Looks like shit. I am sure it would be possible to correctly match the brightness.
Re:ASCII generator: image to text, image to image, video to ... by dessant on Sunday February 03, 2019 @10:46AM (#19070177)
Software often gets better upon further iteration, and we can do our part by offering our time, or at the least, encouraging fellow developers.
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!