ImageMagick 未转换

发布于 2024-12-21 02:25:29 字数 1024 浏览 2 评论 0原文

我刚刚按照这些说明从源代码将 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

二手情话 2024-12-28 02:25:29

当我运行 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 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文