ImageMagick:此图像格式没有解码委托`'@ error / construct.c / ReadImage / 504 [英] ImageMagick: No decode delegate for this image format `' @ error/constitute.c/ReadImage/504

查看:4217
本文介绍了ImageMagick:此图像格式没有解码委托`'@ error / construct.c / ReadImage / 504的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题: ImageMagick转换无法裁剪图像。看起来它无法识别图像类型?

Problem: ImageMagick convert is unable to crop image. It looks like it doesn't recognize the image type?

我尝试过的事情:

我在网上搜索过,我看过几个类似的问题,但不是我的。
我尝试过他们的解决方案,包括

I've searched around online and I've seen several similar issues but not mine. I've attempted their solutions including


  • 通过brew卸载并重新安装ImageMagick。

  • 识别 - 列表格式(JPEG,GIF,PNG,TIFF等都存在,并且都具有rw权限)

  • convert -version (png是内置的代表)

  • 转换pic1.png pic1-jpg.jpg (这很好)

  • 转换pic1-jpg.jpg pic1-jpg.jpg (这很好)

  • 转换pic1-jpg.jpg 805X972 + 34 + 94 pic1-jpg-crop。 jpg (这给出了与png相同的错误,如下所示)

  • Uninstalling and reinstalling ImageMagick via brew.
  • identify -list format (JPEG, GIF, PNG, TIFF, etc were all there and all had rw permissions)
  • convert -version (png is is among the built-in delegates)
  • convert pic1.png pic1-jpg.jpg (this worked fine)
  • convert pic1-jpg.jpg pic1-jpg.jpg (this worked fine)
  • convert pic1-jpg.jpg 805X972+34+94 pic1-jpg-crop.jpg (this gave the same error as for png as shown below)

 

我正在使用Mac OSX El Capitan,终端中的其他一切工作正常。 ImageMagick已经安装。

I'm working on Mac OSX El Capitan and everything else in terminal works fine. ImageMagick was already installed.

当我跑步时:

$ convert /Users/Innovate/Desktop/crop/2015-04-26-GinaDate13_487.png 805X972+34+94 /Users/Innovate/Desktop/crop/2015-04-26-GinaDate13_487-cropped.png 

我得到:


转换:无法打开图像`805X972 + 34 + 94':没有这样的文件或目录@ error / blob.c / OpenBlob / 2702。

convert: unable to open image `805X972+34+94': No such file or directory @ error/blob.c/OpenBlob/2702.

转换:此图像格式没有解码委托`'@ error / construct.c / ReadImage / 504。

convert: no decode delegate for this image format `' @ error/constitute.c/ReadImage/504.

此图像格式无解码委托`'@ error / construct.c / ReadImage / 504

no decode delegate for this image format `' @ error/constitute.c/ReadImage/504

在这个问题的其他帖子中,人们得到了

In the other posts on this issue, people get


为此图片格式转换无解码委托`PNG'

convert no decode delegate for this image format `PNG'

或类似(图像类型或文件名和图像类型除外)

Or similar (except with their image type or filename and image type)

 

但是,我没有对图像文件类型说什么...

However, mine doesn't say anything about image file type...

我还没有尝试卸载ImageMagick然后从源手动安装它因为我不是对此非常有信心...(此解决方案已显示: https://stackoverflow.com/a/34633084/5398660

I have not tried uninstalling ImageMagick then installing it manually from sources because I'm not very confident at doing that... (this solution was shown: https://stackoverflow.com/a/34633084/5398660 )

有谁知道可能会发生什么?

Does anyone know what might be going on?

此外,任何人都可以帮我解释 @ error / construct.c / ReadImage / 504 部分?我正在查看 construct.c 的代码,但我不确定如果我能从中获得有用的信息来解决我的问题(我只知道一点C)

Also, can anyone help me interpret the @ error/constitute.c/ReadImage/504 part? I'm looking at the code for constitute.c but I'm not sure if I can get useful information from it to solve my problem (I only know a bit of C)

谢谢!

推荐答案

brew remove imagemagick //to delete current version
brew install imagemagick --build-from-source

在mac上为我修复了

这篇关于ImageMagick:此图像格式没有解码委托`'@ error / construct.c / ReadImage / 504的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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