关于图像:Imagemagick 在 mac os x 山狮上找不到 .tiff 格式的代表库

Imagemagick can not find delegates library for .tiff format on mac os x mountain lion

我无法将 .tiff 文件转换为其他格式。

这是一些调试输出:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
$ convert -list configure

Path: /usr/local/Cellar/imagemagick/6.7.7-6/lib/ImageMagick/config/configure.xml

Name          Value
-------------------------------------------------------------------------------
CC            cc
CFLAGS        -D_THREAD_SAFE -D_THREAD_SAFE -pthread -g -O2 -Wall -D_THREAD_SAFE -pthread
CODER_PATH    /usr/local/Cellar/imagemagick/6.7.7-6/lib/ImageMagick/modules-Q16/coders
CONFIGURE     ./configure  '--disable-osx-universal-binary' '--without-perl' '--prefix=/usr/local/Cellar/imagemagick/6.7.7-6' '--disable-dependency-tracking' '--enable-shared' '--disable-static' '--without-pango' '--with-included-ltdl' '--with-modules' '--disable-openmp' '--without-gslib' '--with-gs-font-dir=/usr/local/share/ghostscript/fonts' '--without-x' 'CC=cc' 'CXX=c++'
CONFIGURE_PATH /usr/local/Cellar/imagemagick/6.7.7-6/etc/ImageMagick/
COPYRIGHT     Copyright (C) 1999-2012 ImageMagick Studio LLC
CPPFLAGS      -I/usr/local/Cellar/imagemagick/6.7.7-6/include/ImageMagick
CXX           c++
CXXFLAGS      -g -O2 -D_THREAD_SAFE -pthread
DEFS          -DHAVE_CONFIG_H
DELEGATES     bzlib freetype jpeg jng png xml zlib
DISTCHECK_CONFIG_FLAGS 'CC=cc' 'CXX=c++' --disable-deprecated --with-quantum-depth=16 --with-umem=no --with-autotrace=no --with-gslib=no --with-fontpath= --with-gs-font-dir=/usr/local/share/ghostscript/fonts --with-pango=no --with-wmf=no --with-perl=no
DOCUMENTATION_PATH /usr/local/Cellar/imagemagick/6.7.7-6/share/doc/ImageMagick
EXEC-PREFIX   /usr/local/Cellar/imagemagick/6.7.7-6
EXECUTABLE_PATH /usr/local/Cellar/imagemagick/6.7.7-6/bin
FEATURES      OpenCL
FILTER_PATH   /usr/local/Cellar/imagemagick/6.7.7-6/lib/ImageMagick/modules-Q16/filters
HOST          x86_64-apple-darwin12.1.0
INCLUDE_PATH  /usr/local/Cellar/imagemagick/6.7.7-6/include/ImageMagick
LDFLAGS       -L/usr/local/Cellar/imagemagick/6.7.7-6/lib -L/usr/local/Cellar/freetype/2.4.10/lib
LIB_VERSION   0x677
LIB_VERSION_NUMBER 6,7,7,6
LIBRARY_PATH  /usr/local/Cellar/imagemagick/6.7.7-6/lib/ImageMagick
LIBS          -lMagickCore -lfreetype -ljpeg -lbz2 -lz -lm -Wl,-framework,OpenCL -lm -lpthread
NAME          ImageMagick
PCFLAGS
PREFIX        /usr/local/Cellar/imagemagick/6.7.7-6
QuantumDepth  16
RELEASE_DATE  2012-09-18
SHARE_PATH    /usr/local/Cellar/imagemagick/6.7.7-6/share/ImageMagick
SVN_REVISION  8165
TARGET_CPU    x86_64
TARGET_OS     darwin12.1.0
TARGET_VENDOR apple
VERSION       6.7.7
WEBSITE       http://www.imagemagick.org

Path: [built-in]

Name          Value
-------------------------------------------------------------------------------
NAME          ImageMagick

我曾尝试卸载/安装 libtiff、imagemagick,但无法正常工作

1
2
3
4
$ brew uninstall libtiff
$ brew install imagemagick
$ brew uninstall imagemagick
$ brew install imagemagick

知道我的安装有什么问题吗?提前致谢,


我也遇到了同样的问题,只是设法解决了它。

1
2
brew install libtiff
brew install imagemagick --with-libtiff

我尝试了多次卸载和重新安装 imagemagick 和 libtiff 的组合,但每次都得到相同的结果。我希望 brew 会神奇地拾取 libtiff 并将其链接。

我最终通过查看命令的输出找到了 with-libtiff 选项

1
brew info imagemagick

在 2013 年 1 月 30 日之前,该选项被称为 --use-tiff