activating HDR on Mac OSX

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
chumann
Posts: 5
Joined: 2012-03-18T17:18:00-07:00
Authentication code: 8675308

activating HDR on Mac OSX

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: activating HDR on Mac OSX

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: activating HDR on Mac OSX

Post 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
chumann
Posts: 5
Joined: 2012-03-18T17:18:00-07:00
Authentication code: 8675308

Re: activating HDR on Mac OSX

Post by chumann »

Thank you Fred. Worked like a charm!
Post Reply