Need .exr support for simple composite of tiled render
Need .exr support for simple composite of tiled render
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
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
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Need .exr support for simple composite of tiled render
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
snibgo's IM pages: im.snibgo.com
Re: Need .exr support for simple composite of tiled render
Thanks, can you tell me if you see .exr listed when you run:
identify.exe -list format
identify.exe -list format
Re: Need .exr support for simple composite of tiled render
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
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
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?
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?
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Need .exr support for simple composite of tiled render
"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.
Ahh, that's interesting. The file I created, r.exr, seems to be a PPM file, and starts with:
Code: Select all
P6
70 46
255
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.
snibgo's IM pages: im.snibgo.com
Re: Need .exr support for simple composite of tiled render
I think you're right, but you can find a sample here if you'd like to try: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.
https://code.ros.org/trac/opencv/export ... morial.exr
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Need .exr support for simple composite of tiled render
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.
snibgo's IM pages: im.snibgo.com
Re: Need .exr support for simple composite of tiled render
Thanks for your help.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.
Re: Need .exr support for simple composite of tiled render
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
Thanks for the info.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.
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
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
Thanks,
Dan
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Need .exr support for simple composite of tiled render
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.
snibgo's IM pages: im.snibgo.com
Re: Need .exr support for simple composite of tiled render
Thanks snibgo.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.