问题描述
我刚刚将来自源码的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委托库。我从并使用并重新安装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没有转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!