ImageMagick 错误

标签 imagemagick node-imagemagick

当尝试在我的 Grunt 任务上通过 node-imagemagick 运行 ImageMagick 时,我从 ImageMagick 收到此错误:

Warning: Command failed: identify: unable to load module /usr/local/Cellar/imagemagick/6.8.8-9/lib/ImageMagick//modules-Q16/coders/jpeg.la': file not found @ error/module.c/OpenModule/1275. identify: no decode delegate for this image formatinventaire/videos/OFF_Arrestation joueur_14_petit.jpg' @ error/constitute.c/ReadImage/501. Use --force to continue.

为什么 ImageMagick 尝试在 /usr/local/Cellar/imagemagick/6.8.8-9/lib/ImageMagick//modules-Q16/coders/jpeg.la 加载 JPG 编码器?为什么 ImageMagick// 之后有双斜杠?

这个 grunt 脚本在 OSX 10.8 上完美运行,但现在在 10.9.2 上失败。 有谁知道解决办法吗?

最佳答案

我在从 Mt.Lion 升级到 Mavericks 时也遇到了这个问题。我发现an issue in homebrew's github repo 。对我有用的修复是:

$ brew uninstall imagemagick
$ brew install imagemagick --build-from-source

关于ImageMagick 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22715738/

相关文章:

ImageMagick将色彩空间减少为灰色

imagemagick - ImageMagick 是覆盖图像的最快方法吗?我如何才能做得更快,或者是否有我不知道的更快的技术?

linux - 转换-追加*网格

node.js - 使用node-imagemagick将 'crop'图像上传到S3

node.js - NodeJS gm同步获取图像大小

imagemagick - ImageMagick 给出 ' delegate failed ` 'uraw-batch' '

图像魔术创建三角形

python - 在 Python 中向现有 PDF 文档添加文本

node.js - ImageMagick 识别报告不正确的 GIF 帧计数

fonts - ImageMagick 转换命令无法读取字体