GraphicsMagick 0.7.4 Node.js wrapper that makes it seamlessly available as a local dependency on OS X, Linux, and Windows. Windows support is untested.
GraphicsMagick is the swiss army knife of image processing.
Install with npm: npm install --save gm-bin
var execFile = require('child_process').execFile;
var gmPath = require('gm-bin').path;
execFile(gmPath, ['identify', 'foo.png'], function(err, stdout, stderr) {
console.log('file details:', stdout);
});
Can also be run directly from ./node_modules/.bin/gm-bin
.
gm licensed under an MIT license.
MIT