gm icon indicating copy to clipboard operation
gm copied to clipboard

Error: Could not execute GraphicsMagick/ImageMagick: gm "identify" "-ping" "-format" "%

Open Sriram277 opened this issue 8 years ago • 4 comments

Error: Could not execute GraphicsMagick/ImageMagick: gm "identify" "-ping" "-format" "%[EXIF:Orientation]" "assets/images/1499765704765.jpeg" this most likely means the gm/convert binaries can 't be found at ChildProcess. (D:\GleedProjects\wishcop\wishcopcloudbackend\node_modules\gm\lib\command.js:232:12) at emitOne (events.js:96:13) at ChildProcess.emit (events.js:188:7) at ChildProcess.cp.emit (D:\GleedProjects\wishcop\wishcopcloudbackend\node_modules\cross-spawn\lib\enoent.js:36:37) at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)

Why I am getting this issue. Please help

Sriram277 avatar Jul 11 '17 09:07 Sriram277

I'm having this same issue too, none of the existing solutions seem to work.

I'm beginning to think that some dependency of the gm lib is causing this issue.

lmj0011 avatar Jul 14 '17 07:07 lmj0011

currently using this image processing lib in place of gm, and it works well.

https://www.npmjs.com/package/sharp

lmj0011 avatar Jul 19 '17 23:07 lmj0011

Try to see if installing graphicsmagick makes a difference. (For me it did.)

gm -version 
GraphicsMagick 1.4 snapshot-20190423 Q16 http://www.GraphicsMagick.org/

worked, while

identify -version
Version: ImageMagick 6.9.10-23 Q16 x86_64 20190101 https://imagemagick.org

did not.

bernhardreiter avatar Apr 16 '20 15:04 bernhardreiter

If you installed ImageMagick then you have to create a symlink to gm in an exposed directory like /usr/local/bin on Mac from your magick binary Executing this should help.

ln -s /path/to/bin/magick /path/to/bin/gm

gm should be placed in the path exposed to the terminal.

mernxl avatar Apr 23 '20 05:04 mernxl