OpenEXR on 32 bit Windows not working

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
rex666
Posts: 4
Joined: 2009-12-10T18:32:48-07:00
Authentication code: 8675309

OpenEXR on 32 bit Windows not working

Post by rex666 »

Hi

I am building ImageMagick with OpenEXR support for 32 bit Windows from source. I have successfully built OpenEXR. I have pointed the EXR delegate build to the libraries and set the #define MAGICKCORE_OPENEXR_DELEGATE. I have also used #define MAGICKCORE_HDRI_SUPPORT. Everything compiles and links and builds successfully. However, I can't seem to get it to recognize the delegate. If I list the configuration, openexr does not show up:
  • C:\> convert-list configure
    ...
    DELEGATES bzlib freetype jpeg jp2 lcms png tiff x11 xml wmf zlib
    ...
And if I list the image types (convert -list format), I don't see any entry for EXR.

What am I doing wrong? How can I get the delegate to be correctly recognized? Does anyone have ImageMagick with OpenEXR built for 32 bit Windows already?

Thank you for any help you can provide. Thanks,
-robin
rex666
Posts: 4
Joined: 2009-12-10T18:32:48-07:00
Authentication code: 8675309

Re: OpenEXR on 32 bit Windows not working

Post by rex666 »

I have tried rebuilding everything from scratch. Interestingly, if I don't #define MAGICKCORE_OPENEXR_DELEGATE, when I run convert -list format, I see the EXR format, but cannot read or write it:

Code: Select all

...
      ERF  DNG       r--   Epson RAW Format
      EXR  EXR       ---   High Dynamic-range (HDR)
     FITS* FITS      rw-   Flexible Image Transport System
...
As soon as I set that #define, the library component builds correctly, but then the EXR format just disappears totally from the list of formats supported:

Code: Select all

...
      ERF  DNG       r--   Epson RAW Format
     FITS* FITS      rw-   Flexible Image Transport System
...
This doesn't make any sense. Why would the image type disappear completely? How can I debug what is causing this? No matter what I do I cannot get the openexr entry to appear in the list of delegates displayed using identify -list configure.

Is there anyone out there that has managed to successfully build ImageMagick with OpenEXR support for 32 bit Windows?

Thank you for any help you can provide
-robin
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: OpenEXR on 32 bit Windows not working

Post by fmw42 »

I am not a Windows user, but have OpenEXR working on a Mac. But note that IM only implemented the "half" or 16-bit mode for EXR.
rex666
Posts: 4
Joined: 2009-12-10T18:32:48-07:00
Authentication code: 8675309

Re: OpenEXR on 32 bit Windows not working

Post by rex666 »

I managed to get it working. I don't know what I was doing wrong last time, but starting over, and following all instructions got it working. Good news to anyone out there: It is possible to get it working.

Good luck
-robin
Post Reply