Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Sriram277 opened this issue Jul 11, 2017 · 4 comments

Comments

@Sriram277
Copy link

Sriram277 commented Jul 11, 2017

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

@lmj0011
Copy link

lmj0011 commented Jul 14, 2017

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
Copy link

lmj0011 commented Jul 19, 2017

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

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

@bernhardreiter
Copy link

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.

@mernxl
Copy link

mernxl commented Apr 23, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants