HDR/EXR Error

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
mdb

HDR/EXR Error

Post by mdb »

First post here. :)

I grabbed the source code and managed to compile a version of imagemagick. I uncommented and defined the HDR/EXR support in the config file and built the solution.

I ran identify -version and got the following in return:
Version: ImageMagick 6.3.5 09/12/07 Q16 HDRI http://www.imagemagick.org

So I am guessing that it should be enabled

I try converting a test.exr file with this:
convert test.exr test.jpg

And I get the following error:
convert: no decode delegate for this image format `test.exr'.

I have looked around a little bit and have not been able to figure out how to get past this error.

Any insights into what I am missing?

Cheers!
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: HDR/EXR Error

Post by magick »

Type
  • identify -list format
The mode for EXR must be rw+ for ImageMagick to read and write EXR images:
  • EXR* EXR rw+ High Dynamic-range (HDR)
mdb

Re: HDR/EXR Error

Post by mdb »

Hi

Thanks for the fast reply this is what I get from -list format

EXR* EXR --- High Dynamic-range (HDR)

How do I enable the rw+?

Cheers!
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: HDR/EXR Error

Post by magick »

Rerun your configure command line. The final 40 or so lines tells you whether OpenEXR was validated. If not, check config.log to find out why validation failed. Fix the problem and rerun the configure script. Once OpenEXR is validated, rebuild and reinstall ImageMagick.
mdb

Re: HDR/EXR Error

Post by mdb »

Righteous

I got EXR working now. I can open and convert. Which is really good.

Now, I need to convert HDR formats.

I am getting another error for HDR now. I dont have it in front of me once I get a chance I will post the error.

Any reason why EXR now works but HDR does not?

Thanks for all the help!
mdb

Re: HDR/EXR Error

Post by mdb »

Here is the error I get when trying this:

C:\Documents and Settings\temp\My Documents\Visual Studio 2005\Projects\ImageMagick-6.3.5\VisualMagick\bin>convert test.hdr test.jpg
convert: `%s': %s ra_ppm -g 1.0 "C:/DOCUME~1/temp/LOCALS~1/Temp/magick-aesDx
bG." "C:/DOCUME~1/temp/LOCALS~1/Temp/magick-EOcWobZH".
convert: Delegate failed `ra_ppm -g 1.0 "%i" "%o"'.
convert: unable to open image `C:/DOCUME~1/temp/LOCALS~1/Temp/magick-EOcWobZ
H': No such file or directory.
convert: unable to open module file `C:\Documents and Settings\temp\IM_MOD_
DB_RAD_.dll': No such file or directory.
convert: UnableToOpenBlob `C:/DOCUME~1/temp/LOCALS~1/Temp/magick-EOcWobZH':
No such file or directory.
convert: missing an image filename `test.jpg'.

Any thoughts?

Thanks!
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: HDR/EXR Error

Post by magick »

You are running under Windows. Under Windows you can easily enable HDRI but we have not built ImageMagick with OpenEXR. Have you? When you type
  • identify -list format
you get a mode for rw+ for EXR? If not there is no hope of reading EXR image files. If you get EXR working with ImageMagick under Windows post instructions here so we can include EXR support in the next ImageMagick release under Windows.
mdb

Re: HDR/EXR Error

Post by mdb »

Here is my output from -list format

EXR* EXR rw+ High Dynamic-range (HDR)

As for what I did, well that would be because some one a lot smarter than me showed me how to do it. Basically, I grabbed the EXR files from the exr website (openexr-1.4.0-vs2005)

Then in Visual Studio 2005 I selected the IM_MOD_exr did a properties on it in the Solution Explorer. Linked up the exr libraries I downloaded from the exr website. As for what I linked and where, that I would need to get from my co-worker.

Once things were linked, I ran a build on the IM_MOD_exr came up with no errors and then did a clean and rebuild solution for good measure.

Now I can read in EXR files and convert them back out as jpg or whatever. Keep in mind though, I all really need from IM is to convert exr/hdr into jpg for thumbnail purposes on a website. So I am not too concerned about Tone Mapping and what not. Just an approximate preview of what the exr looks like.

But what I really want to get working is HDR. I have a lot more images in hdr than I do in exr. At this point I am less concerned with EXR.

Any one know if I can take an input.hdr and convert that to jpg? I am getting errors like in my previous post.

Thanks.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: HDR/EXR Error

Post by magick »

ImageMagick currently relies on an external delegate, ra_ppm, to decode Radiance images. Have you installed Radiance on your Windows system? If so is ra_ppm in your execution path? Can it be invoked from the Command Prompt window? If so there may be a bug in ImageMagick and we will need to investigate.
mdb

Re: HDR/EXR Error

Post by mdb »

I dont think I have Radiance installed on my win box.

Where can I get that?
mrtm3050
Posts: 11
Joined: 2010-06-25T08:20:50-07:00
Authentication code: 8675308

Re: HDR/EXR Error

Post by mrtm3050 »

Moved to different post.
Post Reply