1.0.0 • Published 8 years ago
grafty v1.0.0
grafty
Converts images to ascii art.
Installation
Install imagemagick and jp2a, typically:
brew install jp2a imagemagick
Or
apt-get install jp2a imagemagick
Usage
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