我试图找到生产machine.It图像的尺寸。它返回错误。错误:无法执行GraphicsMagick/ImageMagick:标识“-ping”“-format”“%wx%h”
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
但它在本地机器上工作正常,我已经上传了与本地机器相同的生产机器上的模块。
什么版本的ImageMagick?什么平台?如果是IM 7,那么你需要将它编写为magick标识-ping -format“%wx%h”yourimage.png。除了“%wx%h”外,不要在其他地方加引号。您是否指定了图片的正确路径?也许你的生产机器在PATH环境变量中没有imagemagick(convert或magick)的路径。在unix上,它通常是/ usr/bin/convert或/ usr/bin/local/convert – fmw42