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.
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.
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.
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'.
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.
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.
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.