识别并转换具有不同的 ImageMagick 版本
我正在使用 Carrierwave 进行照片上传,但图像调整大小功能无法正常工作。所以我花了大约 6 个小时试图在谷歌上找到它。我尝试卸载并安装 ImageMagick,因为它似乎是问题的根源。这没有帮助。所以我然后检查了“identify”和“convert”的版本,这可能是 ImageMagick 附带的两个实用程序。他们报告不同的 ImageMagick 版本号,如下粘贴:
63c55b$ conversion --version 版本:ImageMagick 6.7.3-2 2011-10-23 Q16 http://www.imagemagick.org 版权所有:版权所有 (C) 1999-2011 ImageMagick Studio LLC 功能:OpenMP
63c55b$ 识别 --version 版本:ImageMagick 6.6.2-6 2011-03-16 Q16 http://www.imagemagick.org 版权所有:版权所有 (C) 1999-2010 ImageMagick Studio LLC 功能: OpenMP
这是我使用 make install 从源代码安装 ImageMagick 后的结果。我不知道如何升级识别版本以匹配转换版本。非常感谢帮助!
I am using Carrierwave for photo upload but the image resizing function doesn't work properly. So I spent about 6 hours trying to figure it our on google. I tried uninstalling and installing ImageMagick as it seems to be the root of the problem. This did not help. So I then checked the versions of "identify" and "convert" which are presumably two utilities that come with ImageMagick. They report different ImageMagick version number, as pasted below:
63c55b$ convert --version
Version: ImageMagick 6.7.3-2 2011-10-23 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2011 ImageMagick Studio LLC
Features: OpenMP
63c55b$ identify --version
Version: ImageMagick 6.6.2-6 2011-03-16 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features: OpenMP
This is right after I installed ImageMagick from source using make install. I don't know how to upgrade the version for identify to match that of convert. Help is greatly appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
运行这些命令来查找
convert
和identify
二进制文件的安装位置(我假设您使用的是 Linux 或 Mac OS X): code>convert 与
identify
不同:查看与convert
同一目录下是否还有其他标识。如果这没有帮助,请尝试使用这些命令来列出每个二进制文件的动态依赖项:(
动态依赖项是另一个库或可执行文件需要在运行时加载的库,以便它可以运行...)两者之一可能是“静态链接”(因此根本不列出动态依赖项)。
Run these commands to find out the installation locations of your
convert
andidentify
binaries (I'm assuming you're on Linux or Mac OS X):Should the directory for
convert
be different from that ofidentify
: have a look if there is another identify in the same directory asconvert
.If that doesn't help, try these commands to List the Dynamic Dependencies for each of the binaries:
(Dynamic dependencies are those libs that another lib or executable requires to load at runtime so it can run at all...) One of the two may be 'statically linked' (and hence list no dynamic dependencies at all).