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

Viewed 19367

I'm trying to find the dimensions of the images in a production machine.It returns error.

Could not execute GraphicsMagick/ImageMagick: identify "-ping" "-format" "%wx%h" "uploads/userPhoto-1499669685192.png" this most likely means the gm/convert binaries can't be foundsize==undefined

But it is working fine in local machine and I have already uploaded modules in production machine which are same as local machine.

5 Answers

This is old, but I have no problems in Fedora, but on Ubuntu (I'm using Travis CI):

This don't work

 sudo apt-get -y install imagemagick

This works:

 sudo apt-get -y install graphicsmagick

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.

Related