我最近转移到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