简体   繁体   English

Imagick - 此图像格式没有解码委托

[英]Imagick - no decode delegate for this image format

I am trying to convert PNGs to GIF using ImageMagick on my Ubuntu server.我正在尝试在我的 Ubuntu 服务器上使用 ImageMagick 将 PNG 转换为 GIF。 I used a PHP code to generate it however when I ran it, I received..我使用 PHP 代码生成它,但是当我运行它时,我收到了..

PHP Fatal error: Uncaught exception 'ImagickException' with message 'no decode delegate for this image format PHP 致命错误:未捕获异常“ImagickException”,消息为“此图像格式无解码委托”

Fatal error: Uncaught exception 'ImagickException' with message 'no decode delegate for this image format致命错误:未捕获异常“ImagickException”,消息为“此图像格式无解码委托”

Then I used: convert -list configure , on the libs, I didn't see either gif or png.然后我使用了: convert -list configure ,在 libs 上,我没有看到 gif 或 png。 So I researched a bit more, and found that I should remove and re-install Imagick..所以我研究了一下,发现我应该删除并重新安装 Imagick ..

So I tried sudo apt-get remove imagemagick , and then..所以我尝试sudo apt-get remove imagemagick ,然后..

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

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.安装完成后,我使用wget http://www.imagemagick.org/download/binaries/ImageMagick-x86_64-apple-darwin15.0.0.tar.gz得到了最新版本。

But then, I got totally lost.但是后来,我完全迷路了。 I uncompressed it using tar -xzf ImageMagick-x86_64-apple-darwin15.0.0.tar.gz .我使用tar -xzf ImageMagick-x86_64-apple-darwin15.0.0.tar.gz解压缩了它。 I was expecting to find ./configure in here, but I couldn't.我期待在这里找到./configure ,但我找不到。

What am I missing or doing wrong?我错过了什么或做错了什么? Am I completely out of track?我完全偏离轨道了吗?

You downloaded iOS binaries instead of sources.您下载的是 iOS 二进制文件而不是源代码。 You need sources if you want to compile them by hand:如果您想手动编译它们,则需要源代码:

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

With this file you will be able to compile ImageMagick with whatever image formats you want.使用此文件,您将能够使用您想要的任何图像格式编译 ImageMagick。

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

Edit: Step-by-step instructions编辑:分步说明

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

And then:接着:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Imagick SVG - 这种图像格式没有解码委托 - Imagick SVG - no decode delegate for this image format 在PHP iMagick中获取异常“对此图像格式无解码委托”,但不在ImageMagick上 - Getting exception 'no decode delegate for this image format' in PHP iMagick BUT NOT on ImageMagick PHP Imagick - ImagickException(代码:420):此图像格式* .jpg没有解码委托 - PHP Imagick - ImagickException(code: 420): no decode delegate for this image format *.jpg 来自Imagick的readImageBlob函数抛出了一个错误,例如'No Decode Delegate for this Image Format' - readImageBlob function from Imagick is throwing an error like 'No Decode Delegate For This Image Format' ImageMagick没有此图像格式的解码委托 - ImageMagick No decode delegate for this image format "Imagick SVG 到 JPG 错误没有解码委托" - Imagick SVG to JPG error no decode delegate php5-imagick“没有解码委托”错误 - php5-imagick “no decode delegate” error 使用Imagick()更改图像格式 - change image format using Imagick() PHP致命错误:未捕获异常'ImagickException',消息'此解码委托不适用于此图像格式 - PHP Fatal error: Uncaught exception 'ImagickException' with message 'no decode delegate for this image format 如何使用Imagick将图像转换为另一种格式并在画布中显示? - How to convert an image into another format using Imagick and display that in canvas?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM