我最近轉移到MediaTemple並安裝了ImageMagick和IMagick,他們的知識庫文章here。ImageMagick缺少解碼代理
沒有錯誤和phpinfo()顯示模塊正確安裝。
當我試圖通過PHP使用IM JPG圖片上我得到這個錯誤
Uncaught exception 'ImagickException' with message 'no decode delegate for this image format
/home/149263/domains/wer.com/html/images/pictures/post/tmp/original/' @ error/constitute.c/ReadImage/544' in /nfs/c10/h04/mnt/149263/domains/wer.com/html/application/controllers/post.php:301
Stack trace:
#0 /nfs/c10/h04/mnt/149263/domains/wer.com/html/application/controllers/post.php(301): Imagick->__construct('/home/149263/do...')
#1 [internal function]: Post->filter('punch')
#2 /nfs/c10/h04/mnt/149263/domains/wer.com/html/system/core/CodeIgniter.php(359): call_user_func_array(Array, Array)
#3 /nfs/c10/h04/mnt/149263/domains/wer.com/html/index.php(217): require_once('/nfs/c10/h04/mn...')
#4 {main} thrown in /nfs/c10/h04/mnt/149263/domains/wer.com/html/application/controllers/post.php on line 301
然而convert -list configure
回報
DELEGATES bzlib djvu fontconfig freetype gvc jpeg jp2 lcms openexr png rsvg tiff wmf x11 xml zlib
和identify -list format
回報
JPEG* JPEG rw- Joint Photographic Experts Group JFIF format (62)
JPG* JPEG rw- Joint Photographic Experts Group JFIF format
所以看起來像安裝是正確的。
ImageMagick 6.7.7-0 2012-05-22
imagick module version 3.1.0RC1
任何建議如何解決這個問題?
哎呀,BONZO THX爲回覆 - 這是我的不好,文件名沒有正確傳遞到即時通訊,因此它崩潰 - 提示是第二行的錯誤日誌上面顯示沒有文件名 – pepe
很高興其排序;儘管IM的錯誤報告有時會令人困惑。 – Bonzo