Page 1 of 1

activating HDR on Mac OSX

Posted: 2012-03-18T17:27:56-07:00
by chumann
Hello, I just recently installed the most current build of Imagemagick on my Mac using macports. I understand that HDR needs to be enabled, but I'm not sure how to go about this on OSX. The linux/unix command is listed as well as the Windows, but I can't seem to find info for OSX. The linux/unix command I found is:
./configure --enable-hdri

Kind regards to all.

Chris

Re: activating HDR on Mac OSX

Posted: 2012-03-18T17:59:38-07:00
by fmw42
As I understand it, you have to compile IM manually (following the standard unix instructions) with

download and decompress IM

./configure --enable-hdri
make
sudo make install

I am not sure that you can use MacPorts to do that as I believe it installs with the default ./configure or from a binary compiled already that way.

However, I will defer to the IM developers for corrections on this.

What I have done is install all the delegates I need from Macports and then install IM manually using

./configure CPPFLAGS='-I/opt/local/include' LDFLAGS='-L/opt/local/lib' \
--enable-delegate-build --enable-shared --disable-static \
--with-modules --with-quantum-depth=16 --enable-hdri --with-gslib --without-wmf \
--disable-silent-rules --disable-dependency-tracking \
--with-gs-font-dir=/opt/local/share/ghostscript/fonts/ --with-lqr


The first line with CPPFLAGS and LDFLAGS tells IM to use the delegates and other things from /opt/local... where MacPorts puts them.

The delegates that I installed are:

DELEGATES bzlib fftw fontconfig freetype gs jpeg jng jp2 lcms2 lqr openexr png rsvg tiff x11 xml zlib

But you mainly need jpg, png, tiff, x11, ghostscript, fontconfig and freetype. If you are trying to use FFT, then you need fftw.
I switch back and forth between Q16 hdri and normal Q16 install all the time on my Mac Mini with Snow Leopard.

See
http://www.imagemagick.org/download/www ... .html#unix
http://www.imagemagick.org/script/advan ... lation.php

Re: activating HDR on Mac OSX

Posted: 2012-03-18T18:08:56-07:00
by fmw42
P.S. HDRI does not need to be enabled unless you need to use image data that has/needs to save fractional or negative values.

see
http://www.imagemagick.org/script/high- ... -range.php
http://www.imagemagick.org/Usage/basics/#hdri

Re: activating HDR on Mac OSX

Posted: 2012-03-19T12:59:58-07:00
by chumann
Thank you Fred. Worked like a charm!