ImageMagick没有转换 [英] ImageMagick not converting

查看:157
本文介绍了ImageMagick没有转换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚将来自源码的ImageMagick的新副本安装到Snow Leopard 1.6.8之后这些说明减去 sudo ldconfig / usr / local / lib 命令,因为Mac上似乎不存在。

I've just installed a fresh copy of ImageMagick from source onto Snow Leopard 1.6.8 following these instructions minus the sudo ldconfig /usr/local/lib command because that doesn't seem to exist on Mac.

然后我将其添加到我的全局bash文件中:

Then I added this to my global bash file:

export LD_LIBRARY_PATH=$HOME/local/imagemagick/lib:$LD_LIBRARY_PATH

现在我运行时识别我得到:

/usr/local/bin/identify

当我运行测试时,GIF文件仍为GIF文件:

And when I run the tests, GIF files remain GIF files:

Simpleton:Desktop pawel$ convert logo.gif logo.png
Simpleton:Desktop pawel$ file logo.png 
logo.png: GIF image data, version 89a, 640 x 480

当我想转换JPG文件时,我得到:

And when I want to convert a JPG file I get:

Simpleton:Desktop pawel$ convert clouds.jpg clouds.png
convert: no decode delegate for this image format `clouds.jpg' @ error/constitute.c/ReadImage/532.
convert: missing an image filename `clouds.png' @ error/convert.c/ConvertImageCommand/3016.

当我运行识别-list格式然后我看不到PNG或JPEG库。如何在不重新安装ImageMagick的情况下添加这些?

When I run identify -list format then I can't see PNG or JPEG libraries. How do I add these without reinstalling ImageMagick?

推荐答案

当我运行识别-list格式我可以看到缺少PNG和JPG委托库。我从 http安装 jpegsrc.v8c.tar.gz ://www.imagemagick.org/download/delegates/ 并使用这些说明并重新安装ImageMagick。我现在可以转换为JPG,但仍然不能转换为PNG,所以我显然必须添加该库。

When I run identify -list format I can see that the PNG and JPG delegate libraries are missing. I installed jpegsrc.v8c.tar.gz from http://www.imagemagick.org/download/delegates/ and installed it using these instructions and reinstalled ImageMagick. I can now convert to JPG and still not to PNG so I'll obviously have to add that library.

这篇关于ImageMagick没有转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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