I have installed GM on OSX 10.9. Executing gm version
prints the following:
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
Trying to execute the following command:
String[] commands = new String[]{"identify", "-format", "%h|%w|%b|%t|%e", image_file.getAbsolutePath()};
Returns an error:
org.gm4java.engine.GMException: identify: No decode delegate for this image format (/Users/latu/Desktop/vent.tiff).
Based on the version output, I assume TIFF support is disabled for some reason, although I cant seem to find a solution to this online. I have also tried executing the command from terminal directly (gm identify path)
, and the same error message is returned.
Any feedback on what might be causing this would be greatly appreciated.
Update
I have installed tiff,zlib and jpeg libraries but I still get this when I run ./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
Another solution to this via this SO answer: ImageMagick no decode delegate
What worked for me was
brew install libtiff
to make sure that libtiff was installedbrew install graphicsmagick --with-libtiff
The solution to this problem is found here: http://ext.raneous.net/post/40106080462/building-graphicsmagick-on-osx
Adding ./configure CC=clang
parameter has fixed the problem, and tiff support works as expected now.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With