Homebrew installation of ImageMagick can't find libtiff

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
other_other
Posts: 3
Joined: 2015-04-04T12:07:44-07:00
Authentication code: 6789

Homebrew installation of ImageMagick can't find libtiff

Post by other_other »

I'm getting the following error for tiff commands.

no decode delegate for this image format 'TIFF' @ error/constitute.c/ReadImage/501

I'm running ImageMagick 6.9.0-10 Q16 x86_64 installed via homebrew (http://brew.sh). I also installed libtiff via homebrew. Computer is running OS X Mavericks 10.10.2

I first tried uninstalling ImageMagick (brew uninstall imagemagick && brew cleanup) and reinstalled it just in case it picked up libtiff — no result

convert -list configure yields DELEGATES bzlib mpeg freetype jng jpeg lzma png xml zlib

I tried editing delegates.xml in the CONFIGURE_PATH, commenting out

<!-- <delegate decode="tiff" encode="launch" mode="encode" command=""gimp" "%i""/> -->

and adding

<delegate decode="tiff" encode="launch" mode="encode" command=""libtiff" "%i""/>

Do I need to 'restart' imagemagick in someway so it re-reads the delegates.xml file? Or is there some other step I'm missing?

Thanks for any help or advice
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Homebrew installation of ImageMagick can't find libtiff

Post by fmw42 »

Homebrew seems to be flaky. See viewtopic.php?f=1&t=27264&p=120982&hili ... ew#p120982

How did you install IM? Did you install libtiff at the same location as IM?

If

convert -version

does not list tiff, then it did not get installed properly or at the wrong location for IM to find it.

Does

convert -list format

list TIFF? If not, the same as above is true.
other_other
Posts: 3
Joined: 2015-04-04T12:07:44-07:00
Authentication code: 6789

Re: Homebrew installation of ImageMagick can't find libtiff

Post by other_other »

Neither lists tiff

Where should libtiff be installed for proper discovery by IM?

Though it seems that installing manually is faster than trying to fix a flaky homebrew install.
other_other
Posts: 3
Joined: 2015-04-04T12:07:44-07:00
Authentication code: 6789

Re: Homebrew installation of ImageMagick can't find libtiff

Post by other_other »

Found the fix on StackOverflow:

http://stackoverflow.com/questions/9586 ... e-delegate

Short version is use the below

Code: Select all

brew reinstall imagemagick --with-libtiff
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Homebrew installation of ImageMagick can't find libtiff

Post by fmw42 »

Thanks for the reply with the Homebrew solution. It should help others who have similar issues.
Post Reply