Page 1 of 1

Homebrew installation of ImageMagick can't find libtiff

Posted: 2015-04-04T13:57:24-07:00
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

Re: Homebrew installation of ImageMagick can't find libtiff

Posted: 2015-04-04T14:37:10-07:00
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.

Re: Homebrew installation of ImageMagick can't find libtiff

Posted: 2015-04-04T15:30:07-07:00
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.

Re: Homebrew installation of ImageMagick can't find libtiff

Posted: 2015-04-04T16:12:51-07:00
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

Re: Homebrew installation of ImageMagick can't find libtiff

Posted: 2015-04-04T17:56:53-07:00
by fmw42
Thanks for the reply with the Homebrew solution. It should help others who have similar issues.