News for hackers. Stuff that matters.
Re:Printing images in the terminal with 9 lines of Ruby by donatj on Monday June 29, 2015 @10:05AM (#9798119)
That's neat but I'm sure those gems are far more than 9 lines. I was expecting something more like: https://donatstudios.com/Damn-Simple-PHP-ASCII-Art-Generator
Re:Printing images in the terminal with 9 lines of Ruby by astro- on Monday June 29, 2015 @11:20AM (#9798604)
You're absolutely right.

I was trying to showcase what can be easily done with things that are there. And in particular the possibility to use RGB directly in the terminal.

Really like your ASCII art generator, by the way!

Re:Printing images in the terminal with 9 lines of Ruby by vezzy-fnord on Monday June 29, 2015 @10:09AM (#9798142)
I've always thought the fact that our modern VTEs still being stuck in pure text mode is a regression. We've already settled on terminal control being VT-100 (or more accurately ANSI sequences).

Given experience from prior windowing systems like rio and Oberon, why isn't it standard fare to have programmable text, built-in text processing in terminal windows and bitmap images? TUIs are only the tip of the iceberg, and the inclusion of aforementioned features would obsolete plenty of use cases for GUIs, along with making a lot of task automation so much easier. Application launchers and things like "let me hack a quick script to do a processing job" then become unnecessary.

Re:Printing images in the terminal with 9 lines of Ruby by nine_k on Monday June 29, 2015 @11:15AM (#9798568)
The above has been tried in mid-1990s, with some success, then suddenly exploded, and now we ended up with HTML5 + CSS3.
Re:Printing images in the terminal with 9 lines of Ruby by vezzy-fnord on Monday June 29, 2015 @11:40AM (#9798751)
No, the web is nothing like what I had in mind.
Re:Printing images in the terminal with 9 lines of Ruby by thomasfl on Monday June 29, 2015 @10:10AM (#9798145)
It's scripts like this that makes programming fun.
Re:Printing images in the terminal with 9 lines of Ruby by betandr on Monday June 29, 2015 @11:17AM (#9798592)
Really like this! Merging text with a png to render to the terminal could be the future of cowsay! ;)
Re:Printing images in the terminal with 9 lines of Ruby by tremendo on Monday June 29, 2015 @12:32PM (#9799128)
"This is not the Star Trek actor you're looking for…" (Patrick Stewart /Capt. Picard, not Leonard Nimoy /Spock). Love the script BTW, great work.
Re:Printing images in the terminal with 9 lines of Ruby by astro- on Monday June 29, 2015 @12:51PM (#9799257)
Whoops. Thanks for pointing it out! I fixed it right away, sorry about that.
Re:Printing images in the terminal with 9 lines of Ruby by MattBearman on Monday June 29, 2015 @11:52AM (#9798841)
Very cool! Did you specifically choose RMagick over MiniMagick?
Re:Printing images in the terminal with 9 lines of Ruby by astro- on Monday June 29, 2015 @12:16PM (#9799014)
Thanks! No, it was the one that came up first on Google I guess. Since all that I'm using is change_geometry and resize! I might switch it over to something more lightweight.

Made a note here: https://github.com/pazdera/catpix/issues/1

Thanks for the suggestion, Matt!