我試圖找到生產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