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.



发布了63 篇原创文章 · 获赞 5 · 访问量 18万+
展开阅读全文

没有更多推荐了,返回首页

©️2019 CSDN 皮肤主题: 大白 设计师: CSDN官方博客

分享到微信朋友圈

×

扫一扫,手机浏览