Saturday, 30 January 2016

Facebook and Instagram Can Turn Your Photos Into ASCII Art

ascii

Did you know that Facebook and Instagram both have a “secret” feature that converts your photos into ASCII art? By doing a slight tweak to the URLs of photos, you view them as color black black and white versions that are made up of letters.

While the feature has reportedly been around for a while now, it started getting widespread attention this week after being shared by developer Mathias Bynens:

The side-by-side image above shows the example Bynens Tweeted. As he says, the trick itself is extremely simple. If this is your ordinary URL from Instagram or Facebook…

https://scontent-ams3-1.cdninstagram.com/t51.2885-15/e35/11906246_1700002456899911_1391970345_n.jpg

…simply tack on .txt to see the black and white ASCII version:

https://scontent-ams3-1.cdninstagram.com/t51.2885-15/e35/11906246_1700002456899911_1391970345_n.jpg.txt

…or tack on .html to see the color ASCII conversion:

https://scontent-ams3-1.cdninstagram.com/t51.2885-15/e35/11906246_1700002456899911_1391970345_n.jpg.html

The process is identical for Facebook photos (after all, Facebook owns Instagram). Here’s a before-and-after of the conversation done on Mark Zuckerberg’s profile picture:

mark1

mark2

Doing the conversion is the easy part. Obtaining the original image URL is more tricky. For Instagram, you can view the source code (or inspect) in your browser and look for it there. And on Facebook, right clicking images didn’t provide the correct URL format in our tests.

But if you’re able to figure out the URL side of things, this is a fun little feature you can play around with.

(via Mathias Bynens via The Verge)



from PetaPixel http://petapixel.com/2016/01/30/facebook-and-instagram-can-turn-your-photos-into-ascii-art/

No comments:

Post a Comment