Closed osotorrio closed 8 years ago
I am running Nodejs v4.1.1 in Windows 10 (64-bit). When I execute the following code:
var gm = require('gm').subClass({imageMagick: true});
gm('C:/Images/myImage.png').identify(function (err, data) { if (err) { console.log(err); }else{ console.log(data); }});
I get the next error message:
gm { domain: Domain { domain: null, _events: { error: [Function] }, _eventsCount: 1, _maxListeners: undefined, members: [] }, _events: { identify: [Function] }, _eventsCount: 1, _maxListeners: undefined, _options: { imageMagick: true }, data: {}, _in: [], _out: [], _outputFormat: null, _subCommand: 'convert', source: 'C:/Images/myImage.png', _sourceFormatters: [ [Function] ], _identifyState: 1, bufferStream: false }
[Error: Could not execute GraphicsMagick/ImageMagick: identify "-ping" "-verbose" "C:/Images/myImage.png" this most likely means the gm/convert binaries can't be found]
It worked for me in debian by adding these links
ln -s /usr/bin/gm /usr/local/bin/convert ln -s /usr/bin/gm /usr/local/bin/magick
I am running Nodejs v4.1.1 in Windows 10 (64-bit). When I execute the following code:
var gm = require('gm').subClass({imageMagick: true});
gm('C:/Images/myImage.png').identify(function (err, data) { if (err) { console.log(err); }else{ console.log(data); }});
I get the next error message:
gm { domain: Domain { domain: null, _events: { error: [Function] }, _eventsCount: 1, _maxListeners: undefined, members: [] }, _events: { identify: [Function] }, _eventsCount: 1, _maxListeners: undefined, _options: { imageMagick: true }, data: {}, _in: [], _out: [], _outputFormat: null, _subCommand: 'convert', source: 'C:/Images/myImage.png', _sourceFormatters: [ [Function] ], _identifyState: 1, bufferStream: false }
[Error: Could not execute GraphicsMagick/ImageMagick: identify "-ping" "-verbose" "C:/Images/myImage.png" this most likely means the gm/convert binaries can't be found]