ImageMagick没有此图像格式的解码委托 [英] ImageMagick No decode delegate for this image format
问题描述
我在Windows和wamp服务器下工作。
I work under windows and wamp server.
这是我的PHP代码与Imagick
this is my PHP code with Imagick
$imagick = new Imagick($_SERVER['DOCUMENT_ROOT'] . '/' . $this->_name);
其中 $ _ SERVER ['DOCUMENT_ROOT']。'/'。$ this - > _name
显示:
D:/ Sources / my_project / public / media / 2/9 / 1/05201502 / 55450e1b6543a05201502_9.PNG
D:/Sources/my_project/public/media/2/9/1/05201502/55450e1b6543a05201502_9.PNG
我检查了该图片,它确实存在于文件夹中。
I checked that image and it does exist in the folder.
但Imagick抛出异常:
But Imagick throws an exception :
未捕获的异常'ImagickException',消息'no decode delegate
对于这种图像格式
`D:/Sources/my_project/public/media/2/9/1/05201502/55450b10d8ea705201502_9.PNG'
@ error / construct.c / ReadImage / 555'in
D:\ Sources \ my_project \library\project\Image.php 225行
Uncaught exception 'ImagickException' with message 'no decode delegate for this image format `D:/Sources/my_project/public/media/2/9/1/05201502/55450b10d8ea705201502_9.PNG' @ error/constitute.c/ReadImage/555' in D:\Sources\my_project\library\project\Image.php on line 225
我找了一个解决方案,但没有找到任何解决方案,我该如何解决?谢谢
I looked for a solution, but didn't find any, how can I fix this?? thank you
更新:这是我输入 convert -version
时的结果命令行:
Update: This is the result when I type convert -version
in the command line :
Version: ImageMagick 6.8.8-4 Q16 x86 2014-01-29 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules OpenMP
Delegates: bzlib cairo freetype jbig jng jp2 jpeg lcms lqr pangocairo \
png ps rsv g tiff webp xml zlib
更新
这是imagick的phpinfo。
This is the phpinfo of imagick.
ImageMagick支持的格式数量:0
ImageMagick支持的格式:无值
ImageMagick number of supported formats: 0
ImageMagick supported formats: no value
推荐答案
似乎你的ImageMagick PHP模块不支持任何图片格式。
Seems that your ImageMagick PHP module does not support any image formats.
尝试查找其他ImageMagick安装或从头开始安装PHP。
Try to find other ImageMagick installation or install PHP from the scratch.
另外 - 似乎已经在SO中提问/回答
Also - seems that there is already question/answer in SO about that
这篇关于ImageMagick没有此图像格式的解码委托的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!