gpt4 book ai didi

installation - GraphicsMagick:此图像格式没有解码委托(delegate)

转载 作者:行者123 更新时间:2023-12-04 05:22:29 26 4
gpt4 key购买 nike

我已经在 OSX 10.9 上安装了 GM。执行gm version打印以下内容:

GraphicsMagick 1.3.18 2013-03-10 Q8 http://www.GraphicsMagick.org/
Copyright (C) 2002-2013 GraphicsMagick Group.
Additional copyrights and licenses apply to this software.
See http://www.GraphicsMagick.org/www/Copyright.html for details.

Feature Support:
Thread Safe yes
Large Files (> 32 bit) yes
Large Memory (> 32 bit) yes
BZIP yes
DPS no
FlashPix no
FreeType no
Ghostscript (Library) no
JBIG no
JPEG-2000 no
JPEG no
Little CMS no
Loadable Modules no
OpenMP no
PNG no
TIFF no
TRIO no
UMEM no
WMF no
X11 no
XML yes
ZLIB yes

Host type: x86_64-apple-darwin13.0.0

Configured using the command:
./configure

Final Build Parameters:
CC = gcc
CFLAGS = -g -O2 -Wall -D_THREAD_SAFE
CPPFLAGS = -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/libxml2
CXX = g++
CXXFLAGS = -D_THREAD_SAFE
LDFLAGS = -L/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/lib
LIBS = -lbz2 -lxml2 -lz -lm -lpthread

尝试执行以下命令:

String[] commands = new String[]{"identify", "-format", "%h|%w|%b|%t|%e", image_file.getAbsolutePath()};

返回错误:

org.gm4java.engine.GMException: identify: No decode delegate for this image format (/Users/latu/Desktop/vent.tiff).



根据版本输出,我假设由于某种原因禁用了 TIFF 支持,尽管我似乎无法在网上找到解决方案。我也试过直接从终端执行命令 (gm identify path) ,并返回相同的错误消息。
任何有关可能导致此问题的反馈将不胜感激。

更新

我已经安装了 tiff、zlib 和 jpeg 库,但是当我运行 ./configure 时仍然得到这个
checking for TIFF support ... 
checking tiff.h usability... no
checking tiff.h presence... no
checking for tiff.h... no
checking tiffio.h usability... no
checking tiffio.h presence... no
checking for tiffio.h... no
checking for TIFFOpen in -ltiff... no
checking for TIFFClientOpen in -ltiff... no
checking for TIFFIsByteSwapped in -ltiff... no
checking for TIFFReadRGBATile in -ltiff... no
checking for TIFFReadRGBAStrip in -ltiff... no
checking if TIFF package is complete... no

最佳答案

通过这个 SO 答案的另一个解决方案:ImageMagick no decode delegate

对我有用的是

  • brew install libtiff确保安装了 libtiff
  • brew install graphicsmagick --with-libtiff
  • 关于installation - GraphicsMagick:此图像格式没有解码委托(delegate),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20220899/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com