ImageMagick 未转换
我刚刚按照这些说明从源代码将 ImageMagick 的新副本安装到 Snow Leopard 1.6.8 上 减去 sudo ldconfig /usr/local/lib 命令,因为 Mac 上似乎不存在该命令。
然后我将其添加到我的全局 bash 文件中:
export LD_LIBRARY_PATH=$HOME/local/imagemagick/lib:$LD_LIBRARY_PATH
现在,当我运行 which recognize
时,我得到:
/usr/local/bin/identify
当我运行测试时,GIF 文件仍然是 GIF 文件:
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 文件时,我得到:
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.
当我运行 identify -list format
时,我看不到 PNG 或 JPEG 库。如何在不重新安装 ImageMagick 的情况下添加这些内容?
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.
Then I added this to my global bash file:
export LD_LIBRARY_PATH=$HOME/local/imagemagick/lib:$LD_LIBRARY_PATH
Now when I run which identify
I get:
/usr/local/bin/identify
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
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.
When I run identify -list format
then I can't see PNG or JPEG libraries. How do I add these without reinstalling ImageMagick?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当我运行
identify -list format
时,我可以看到 PNG 和 JPG 委托库丢失。我从 http://www.imagemagick 安装了jpegsrc.v8c.tar.gz
.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 installedjpegsrc.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.