I encountered some issues to combine EXR. With PNG or anything else, no problem (with ImageMagick).
I have 4 images at same size, which should be combined to get a bigger image. Each image represents a part of the bigger image (top left, top right, bottom left and bottom right). Each image contains N layers with information (colors, depth, etc). Theses layers must be combined in the final image.
Each image has this signature :
$ identify imput_tile_0001.exr
imput_tile_0001.exr EXR 400x225 400x225+0+0 16-bit DirectClass 2.501MB 0.000u 0:00.000
I try ImageMagick simple commands like
$ convert +append *.exr out.exr
$ montage *.exr -tile 2x2 -geometry +0+0 out.exr
Theses commands returns a totally black image, with the correct size, and with only 1 layer.
I am open to any solution with any language or any software, working on Debian.
Edit : The 4 EXR tiles can be found here : https://www.dropbox.com/sh/p6h8kh5wlroy5bb/AACMuR8WieZ-SqB3qXHFwk_ea?dl=0 (These are the "imput_tile...exr").
Any idea?
I am no expert on (ok, I have never even seen any) EXR format images but I know that
vips
is able to process them. I can't even tell what your images look like but I think/hope this might be doing what you want.First, I inspect your images and see they are 4 bands of 400x225 pixels like this
Then I do a
left-right join
to get the top row of your desired result:Then I do another
left-right join
to get the bottom row of your desired result:Then I do a
top-bottom join
to join the top and bottom to get the final result:And if I look at it, it appears to have the correct dimensions and the same number of bands and coding as your originals:
Notes
The
xyz.v
format isvips
's internal, efficient image formatvips
is available with bindings to many languages - see thevips
website here.It may be able to cache the intermediate files I create (
top.v
andbot.v
), but I have no idea howThe
vips
maintainer is on SO as @user894763 and he may be able to throw more light on my musings - hopefully!