Page 1 of 1

Building ImageMagick with EXR support on Windows

Posted: 2009-09-29T07:35:07-07:00
by jon.wolf
I am trying to build ImageMagick with EXR support on windows, and running into some difficulties.

I downloaded and followed the instructions to build openEXR, and I've succesfully built ImageMagick. In anotherthread, the instructions given were to "download and install the EXR delegate"

I'm not sure what is meant by this, or how to accomplish it. I have the built EXR binaries, just not sure what needs to be put where, or any other steps that need to be taken.

thanks for the help!

Re: Building ImageMagick with EXR support on Windows

Posted: 2009-09-29T10:05:40-07:00
by magick
We've never tried to build EXR so we cannot be of much help other than to suggest you use the existing model for supporting delegate libraries. Unpack EXR in the top level ImageMagick folder and rename it exr. Now set up a exr folder in VisualMagick based on one of the other delegate library folders. Now run the configure program. It should build a VisualStudio project that includes a build environment for EXR. You may need to modify configure.cpp to link the EXR library to the ImageMagick EXR coder module or you can do that manually with the Visual Studio IDE.

Re: Building ImageMagick with EXR support on Windows

Posted: 2009-09-29T12:00:43-07:00
by jon.wolf
EXR is on the supported formats list, so I assumed that there was at least some support?

The High Dynamic Range page states "You must have the OpenEXR delegate library installed to read or write this format." Which would seem to imply that there is a way of doing it?

Re: Building ImageMagick with EXR support on Windows

Posted: 2009-09-29T12:32:40-07:00
by magick
EXR is supported because a coder module is available to read and write the format. In all there are over 20 possible delegate libraries. We could not possibly support ImageMagick, and in addition, the delegate libraries and all the possible combinations of OS's (Windows, Mac, Unix, Linux, FreeBSD, etc.) and compilers (gcc, xlc, llvm, etc), etc. Fortunately under Linux there is generally an RPM for each delegate format. You simply install the RPM and ImageMagick automatically detects and installs support for the particular delegate library. For that matter, ImageMagick generally comes pre-installed with support for most delegate libraries under Linux. It is generally equally easy under Mac OS X with Mac Ports. Windows has always been problematic because of their insistence on proprietary methods rather than open standards. The long and short of this is that you are on your own getting EXR working with ImageMagick under Windows unless another discourse user happens to post with advice.