Page 1 of 1

HDR/EXR Error

Posted: 2007-10-12T12:41:14-07:00
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!

Re: HDR/EXR Error

Posted: 2007-10-12T12:50:00-07:00
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)

Re: HDR/EXR Error

Posted: 2007-10-12T13:20:38-07:00
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!

Re: HDR/EXR Error

Posted: 2007-10-12T14:35:26-07:00
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.

Re: HDR/EXR Error

Posted: 2007-10-15T06:10:27-07:00
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!

Re: HDR/EXR Error

Posted: 2007-10-15T08:38:44-07:00
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!

Re: HDR/EXR Error

Posted: 2007-10-15T09:46:04-07:00
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.

Re: HDR/EXR Error

Posted: 2007-10-15T12:11:05-07:00
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.

Re: HDR/EXR Error

Posted: 2007-10-15T13:13:18-07:00
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.

Re: HDR/EXR Error

Posted: 2007-10-15T13:40:11-07:00
by mdb
I dont think I have Radiance installed on my win box.

Where can I get that?

Re: HDR/EXR Error

Posted: 2010-06-29T09:59:20-07:00
by mrtm3050
Moved to different post.