想象 - 没有这种图像格式的解码代表 [英] Imagick - no decode delegate for this image format

查看:323
本文介绍了想象 - 没有这种图像格式的解码代表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用我的Ubuntu服务器上的ImageMagick将PNG转换为GIF。我使用PHP代码生成它但是当我运行它时,我收到了..

I am trying to convert PNGs to GIF using ImageMagick on my Ubuntu server. I used a PHP code to generate it however when I ran it, I received..


PHP致命错误:未捕获的异常'ImagickException'与消息'此图像格式无解码委托

PHP Fatal error: Uncaught exception 'ImagickException' with message 'no decode delegate for this image format

致命错误:未捕获异常'ImagickException',消息'此解码图片格式无代码

Fatal error: Uncaught exception 'ImagickException' with message 'no decode delegate for this image format

然后我使用: convert -list configure ,在libs上,我没有看到gif或png 。所以我研究了一下,发现我应该删除并重新安装Imagick ..

Then I used: convert -list configure, on the libs, I didn't see either gif or png. So I researched a bit more, and found that I should remove and re-install Imagick..

所以我试过 sudo apt-get remove imagemagick ,然后..

So I tried sudo apt-get remove imagemagick, and then..

sudo apt-get install libperl-dev gcc libjpeg-dev libbz2-dev libtiff4- dev libwmf-dev libz-dev libpng12-dev libx11-dev libxt-dev libxext-dev libxml2-dev libfreetype6-dev liblcms1-dev libexif-dev perl libjasper-dev libltdl3-dev graphviz pkg-config

完成安装后,我使用了 wget http://www.imagemagick.org/download/binaries/ImageMagick-x86_64-apple-darwin15。 0.0.tar.gz 并获得最新版本。

After it completed installing, I used wget http://www.imagemagick.org/download/binaries/ImageMagick-x86_64-apple-darwin15.0.0.tar.gz and got the latest version.

然而,我完全迷失了。我使用 tar -xzf ImageMagick-x86_64-apple-darwin15.0.0.tar.gz 解压缩它。我原本希望在这里找到 ./ configure ,但我不能。

But then, I got totally lost. I uncompressed it using tar -xzf ImageMagick-x86_64-apple-darwin15.0.0.tar.gz. I was expecting to find ./configure in here, but I couldn't.

我缺少什么或者做错了?我是否完全脱离了轨道?

What am I missing or doing wrong? Am I completely out of track?

推荐答案

您下载了iOS二进制文件而非源代码。如果你想手动编译它们,你需要来源:

You downloaded iOS binaries instead of sources. You need sources if you want to compile them by hand:

http://www.imagemagick.org/download/ImageMagick-6.9.3-0.tar.gz

使用此文件,您将能够使用您想要的任何图像格式编译ImageMagick。

With this file you will be able to compile ImageMagick with whatever image formats you want.

http://www.imagemagick.org/script/install-source.php

编辑:分步说明

wget http://www.imagemagick.org/download/ImageMagick-6.9.3-0.tar.gz
tar xvzf ImageMagick-6.9.3-0.tar.gz
cd ImageMagick-6.9.3-0
./configure

确保上一个命令的输出显示:

Make sure that the output of the previous command shows this:

PNG               --with-png=yes        yes

然后:

make
sudo make install
sudo ldconfig /usr/local/lib

这篇关于想象 - 没有这种图像格式的解码代表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆