aheckmann / gm

GraphicsMagick for node
http://aheckmann.github.com/gm/
6.95k stars 616 forks source link

The gm/convert binaries can't be found #455

Closed osotorrio closed 8 years ago

osotorrio commented 9 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]

leonardocartaxo commented 1 month ago

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