Convert Image to ASCII Art with Node.js
There are many people out there that don't appreciate ASCII art; we call those people "idiots". ASCII art has been used forever and remains, in my opinion, a feat of programming and creativity. There's a project called image-to-ascii which doesn't just create ascii art but does so from an image of your choosing. Baller!
Assuming you've installed dependencies, outputting an image to ASCII art in the console is fairly simple:
var ImageToAscii = require('image-to-ascii');
ImageToAscii(__dirname + '/logo.png', function(err, converted) {
console.log(err || converted);
});
Short bit of code for a cool effect. You'll want to size the image down to less than 200px for best display and even then the ASCII output within the console looks excellent. As I mentioned in Show Images in Console with Node.js console-png, adding graphical elements to the console can be a nice touch and enhancement from bland text!
Kids these days, I tell ya. All they care about is the technology. The video games. The bottled water. Oh, and the texting, always the texting. Back in my day, all we had was...OK, I had all of these things too. But I still don't get...
I love almost every part of being a tech blogger: learning, preaching, bantering, researching. The one part about blogging that I absolutely loathe: dealing with SPAM comments. For the past two years, my blog has registered 8,000+ SPAM comments per day. PER DAY. Bloating my database...
We've all used word processing applications like Microsoft Word and if there's one thing they've taught you it's that you need to save every few seconds in anticipation of the inevitable crash. WordPress has mimicked this functionality within their WYSIWYG editor and I use it...
One technique I'm seeing more and more these days (CNNSI.com, for example) is AJAX recording of selected text. It makes sense -- if you detect users selecting the terms over and over again, you can probably assume your visitors are searching that term on Google...
Thanks for sharing this informative blog!! From your blog I have been able to get how to convert Image to ASCII Art with Node.js
ASCII is one of the important part of programming and can’t be left behind.
Web Development Company in Sahibabad, Ghaziabad
http://bespokedigitalmedia.in/web-development/
Wow this really brings me back. I remember when I first saw ASCII art for the first time many years ago. I tried to create my own, and what was meant to be an Owl turned out more like The Creature from the Black Lagoon! Very cool article, will definitely give this a try when I get a chance.