Fix for "convert: no decode delegate for this image format"

转载自:http://blog.ericlamb.net/2008/11/fix-for-convert-no-decode-delegate-for-this-image-format/

While working with ImageMagick on one of my servers I was getting the following error:

convert: no decode delegate for this image format

This means that, more than likely, I was missing the decoding library. 

Apparently you need to install it and then recompile ImageMagick to work with Jpg files. 

I'm not sure why it wasn't installed by the OS though...


Anyway, to fix:

Go to: http://www.imagemagick.org/download/delegates/ and download the required/missing delegate library.

Execute "gunzip libjpeg-6b.tar.gz"

Execute "tar -xvf libjpeg-6b.tar"

Change directories to the newly created "libjpeg-x"

Execute "./configure"

Execute "make"

Execute "make test"

Execute "make -n install" first to see if the makefile will put the files where you want them.

If there are no errors and you're ok with the installation path go ahead and install with "make install"


NOTE: 

On my system the manual directory wasnt' in the expected path so an error was thrown: 

"/usr/bin/install: cannot create regular file `/usr/local/man/man1/cjpeg.1': No such file or directory".


To fix I just created the expected directory "/usr/local/man/man1/" and install went smooth.

After that it was a simple matter of reinstalling ImageMagick.



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值