1.0.0 • Published 10 years ago
grafty v1.0.0
grafty
Converts images to ascii art.
Installation
Install imagemagick and jp2a, typically:
brew install jp2a imagemagickOr
apt-get install jp2a imagemagickUsage
var Grafty = require('grafty');
var grafty = new Grafty({
width: 30,
dir: '/tmp'
});
grafty.convert('photo.png', function (err, result) {
console.log(result);
});Note: dir defaults to /tmp but if you are on Windows, you should change this to your proper /tmp directory.

becomes

Tests
npm test