Tom94 / tev

High dynamic range (HDR) image viewer for graphics people
BSD 3-Clause "New" or "Revised" License
1.02k stars 86 forks source link

Multipart EXR #144

Closed Tom94 closed 2 years ago

Tom94 commented 2 years ago

Makes tev load all parts of multipart EXR images as logically separate images. (As opposed to trying to merge channels and layers with matching resolutions.)

After much thought about this behavior, I believe this is the most general/portable approach. Multipart EXR images are ultimately nothing more than multiple separate EXR images packaged into the same file.

To allow distinguishing the multiple loaded parts, their channels are prefixed by the part name. For example, a multi-part EXR image "image.exr" with parts "part1" and "part2", each of which containing "r", "g", and "b" channels will result in two images being opened:

  1. "image.exr:part1" with channels "part1.(r,g,b)"
  2. "image.exr:part2" with channels "part2.(r,g,b)"