Page 1 of 1
Need .exr support for simple composite of tiled render
Posted: 2013-05-09T00:15:43-07:00
by mrDan
Hi all,
I've recently been exploring ways to quickly and easily combine tiled half-float .exr renders with a simple lightweight command line based tool approach. I have access to Nuke and various other compositing solutions however taking a license from another user for this seems like overkill for the simplicity of the task.
The best candidate so far seems to be ImageMagick which is great because it's globbing support keeps the syntax simple. As far as I can tell, to merge an entire folder of .exr files the command would simply be:
path/to/convert.exe *.exr -layers flatten output.exr
However I cannot for the life of me find a compiled binary that includes support for .exr and I don't have the chops to compile from source code. Even if I did it seems to be a little 'involved' from what I can gather.
Can anybody possibly give me some pointers on where I might be able to find the resources I need to get up and running?
Many thanks.
Dan.
Windows7 64bit
Re: Need .exr support for simple composite of tiled render
Posted: 2013-05-09T01:47:54-07:00
by snibgo
I run Windows 7. The pre-compiled IM v6.8.5 seems to handle EXR. At any rate, the following work (which doesn't prove it is correct, of course):
Code: Select all
convert rose: r.exr
convert r.exr p.png
Re: Need .exr support for simple composite of tiled render
Posted: 2013-05-09T02:46:05-07:00
by mrDan
Thanks, can you tell me if you see .exr listed when you run:
identify.exe -list format
Re: Need .exr support for simple composite of tiled render
Posted: 2013-05-09T03:11:05-07:00
by mrDan
I have just downloaded and installed ImageMagick-6.8.5-Q16
When I try to convert any .exr files, I get this error:
"convert.exe: no decode delegate for this image format" `_tile_5x17_20x20_render.1.exr' @ error/constitute.c/ReadImage/550.
and it does not show EXR or OpenEXR when I run:
indentify -list format
Re: Need .exr support for simple composite of tiled render
Posted: 2013-05-09T03:32:16-07:00
by mrDan
Actually, I get that error when I try and use the -layers flatten command.
If I just run (as in your example):
convert a.png a.exr
Where a.png is a valid .png file that I have saved out of Photoshop
I get no errors, however the output .exr file is still a .png it's just been renamed .exr
Perhaps that is also the case with your test?
Re: Need .exr support for simple composite of tiled render
Posted: 2013-05-09T04:01:41-07:00
by snibgo
"identify -list format" doesn't list exr.
Ahh, that's interesting. The file I created, r.exr, seems to be a PPM file, and starts with:
I know nothing about exr, but that seems unlikely. More testing revels this behaviour happens for any random collection of junk characters as the extension, eg "convert rose: r.poi" gives the same result.
Sorry if I raised your hopes.
I don't have any exr files. If you can point me to one, I can try it out on various versions of IM, on Windows. But I now suppose none of them will work.
Re: Need .exr support for simple composite of tiled render
Posted: 2013-05-09T04:34:25-07:00
by mrDan
snibgo wrote:
I don't have any exr files. If you can point me to one, I can try it out on various versions of IM, on Windows. But I now suppose none of them will work.
I think you're right, but you can find a sample here if you'd like to try:
https://code.ros.org/trac/opencv/export ... morial.exr
Re: Need .exr support for simple composite of tiled render
Posted: 2013-05-09T04:41:41-07:00
by snibgo
I tried "convert memorial.exr m.png" with IM v6.7.9, 6.8.0, 6.8.1, 6.8.2, 6.8.3, 6.8.4 and 6.8.5. Sorry, no luck.
Re: Need .exr support for simple composite of tiled render
Posted: 2013-05-09T04:52:18-07:00
by mrDan
snibgo wrote:I tried "convert memorial.exr m.png" with IM v6.7.9, 6.8.0, 6.8.1, 6.8.2, 6.8.3, 6.8.4 and 6.8.5. Sorry, no luck.
Thanks for your help.
Re: Need .exr support for simple composite of tiled render
Posted: 2013-05-09T05:40:42-07:00
by magick
Works for us under Linux. You need the OpenEXR delegate library. It is not built-in by default for the Windows binary distributions.
Re: Need .exr support for simple composite of tiled render
Posted: 2013-05-09T06:12:57-07:00
by mrDan
magick wrote:Works for us under Linux. You need the OpenEXR delegate library. It is not built-in by default for the Windows binary distributions.
Thanks for the info.
Is that something that's needed pre-compilation? Or is it just a case of procuring the appropriate dll and placing it somewhere?
Re: Need .exr support for simple composite of tiled render
Posted: 2013-05-10T03:03:51-07:00
by mrDan
Could I just get a yes/no answer as to whether or not exr support is something I can add without having to compile IM. I'm guessing not, but there has been enough ambiguity in the replies to make me ask once more.
Thanks,
Dan
Re: Need .exr support for simple composite of tiled render
Posted: 2013-05-10T04:08:09-07:00
by snibgo
Sorry, I don't know the definitive answer. I think you need to recompile. However, the dynamic version uses DLL files, so maybe if you get hold of the appropriate DLL file (perhaps named CORE_RL_exr_.dll), that's all you need. Even then, you might need to tweak the delegates file.
Re: Need .exr support for simple composite of tiled render
Posted: 2013-05-13T01:23:59-07:00
by mrDan
snibgo wrote:Sorry, I don't know the definitive answer. I think you need to recompile. However, the dynamic version uses DLL files, so maybe if you get hold of the appropriate DLL file (perhaps named CORE_RL_exr_.dll), that's all you need. Even then, you might need to tweak the delegates file.
Thanks snibgo.