Skip to content

Latest commit

 

History

History
30 lines (17 loc) · 884 Bytes

readme.md

File metadata and controls

30 lines (17 loc) · 884 Bytes

node-gm-bin Build Status

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

Install with npm: npm install --save gm-bin

Example usage

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.

License

gm licensed under an MIT license.

MIT