imagemagick:文件名中的括号'没有这样的文件或目录' - Mac OS X. [英] imagemagick: brackets in file names 'No such file or directory' — Mac OS X

查看:217
本文介绍了imagemagick:文件名中的括号'没有这样的文件或目录' - Mac OS X.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已将我的Homebrew ImageMagick升级到 6.9.4-7 版本(Mac OS 10.11.5),之后它不再理解文件名中的括号。

I've upgraded my Homebrew ImageMagick to 6.9.4-7 version (Mac OS 10.11.5), after which it doesn't understand brackets in file names anymore.

此命令应考虑图片的第一帧:

This command should consider the first frame of a picture:

identify -format '%wx%h,1' 'some_pic.jpg[0]'

For JPG它实际上只是图片,所以命令相当于:

For JPG it is actually just the picture, so the command is equivalent to:

identify -format '%wx%h,1' 'some_pic.jpg'

bracket 命令在我的Ubuntu服务器上运行正常并在我的Mac上工作过。但现在它失败了

The bracket command works fine on my Ubuntu server and worked before on my Mac. But now it fails with

identify: unable to open image `some_pic.jpg[0]': 
No such file or directory @ error/blob.c/OpenBlob/2705.

顺便说一句,这就是 Paperclip :: Errors :: NotIdentifiedByImageMagickError <背后的原因/ code>在我的本地机器上。

Btw, this is the reason behind Paperclip::Errors::NotIdentifiedByImageMagickError on my local machine.

推荐答案

手动安装 imagemagick-6.9.3- 10 通过brew修复了这个问题。所以我认为这是imagemagick中的一个错误。

Manually installing imagemagick-6.9.3-10 via brew has fixed the problem. So I believe it's a bug in imagemagick.

PS
要通过brew安装特定版本,请运行

PS: To install specific version via brew, run

brew edit imagemagick

并编辑以下行:

url "https://dl.bintray.com/homebrew/mirror/imagemagick-6.9.4-7.tar.xz"
mirror "https://www.imagemagick.org/download/ImageMagick-6.9.4-7.tar.xz"
sha256 "f54fc8dcdb328404d1f89ddebe75d603e22894d3786ca2f2a9677478135b4c86"

如果您选择的版本可能无效( https://dl.bintray.com/homebrew/mirror/ )与brew配方的其余部分不兼容。然后你需要更深入。

May not work if the version you choose (https://dl.bintray.com/homebrew/mirror/) is not compatible with the rest of the brew formula. Then you need to go deeper.

这篇关于imagemagick:文件名中的括号'没有这样的文件或目录' - Mac OS X.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆