Live data from Hacker News

Asciifi - an ASCII art converter for a more civilized age

asciifi.com

1–10 of 28 posts

Re: Asciifi - an ASCII art converter for a more civilized age

#4
post #3

The site declaims "crappy PHP scripts", yet it is broken for me (on Safari 5.1.1) :) There are two copies of the video: http://dl.dropbox.com/u/1237941/Screen%20Shot%202011-11-28%2...

Just pushed a change to the way the video is embedded — hopefully that takes care of the bug.

Re: Asciifi - an ASCII art converter for a more civilized age

#6
post #5

Uploaded my favorite photo of our 12 week old daughter in the hopes that I could stuff it into the repo of some new project. When attempting to adjust the line width, Chrome went "Aw, Snap!" Would love to see this again when all the kinks are worked out.

Sometimes, as a web developer, you have no consistent way to diagnose these issues. We found an issue using drag and drop uploads on one of our sites where if you uploaded the same image in chrome, one after another, it would crash. So I wouldn't give all the flak to the developer, as it might be chrome.

Re: Asciifi - an ASCII art converter for a more civilized age

#7
post #2

Haha, nice — I'm the developer if anyone has any questions (it's using a canvas element to convert images/data URIs to ASCII art). Also, here's a link to the Github repo: https://github.com/zachwill/asciifi

I wonder which algorithm you're using? From very quick testing, it looks like you're picking characters to represent various grayscale values, but I'm not sure that you're taking the shape of the characters into account like other converters do.

Re: Asciifi - an ASCII art converter for a more civilized age

#9
post #7
post #2

Haha, nice — I'm the developer if anyone has any questions (it's using a canvas element to convert images/data URIs to ASCII art). Also, here's a link to the Github repo: https://github.com/zachwill/asciifi

I wonder which algorithm you're using? From very quick testing, it looks like you're picking characters to represent various grayscale values, but I'm not sure that you're taking the shape of the characters into account like other converters do.

I used a combination of Tab Atkins' and the MooTools ASCII art (https://github.com/khrome/MooAsciiArt.js) algorithms. The four ASCII options came from those two libraries, as well (I played around with the values on various pictures until I found ones that I thought worked the best).

You can also take a look at the Asciify and AsciiCharacter classes in the CoffeeScript file (https://github.com/zachwill/asciifi/blob/master/static/js/ap...).

Post reply on HN