Are you talking about a "multi-part" exr (what OIIO calls multi-subimage), or are you talking about "multi-layer" which is a single "part" with many channels but that just follows a convention for how to name those channels so that they can be grouped easily by an application?
If you just want a single RGBA image in the end, then are you just talking about simply extracting the RGBA channels for export to another format? "flatten" just composites the multiple depth samples within each pixel of a deep image to a single per-channel value. But it does not affect which channels are in which "part" of a multi-part image. > On Sep 16, 2020, at 7:45 AM, Radu Arjocu <[email protected]> wrote: > > Hello, > > Being relatively new to the OpenEXR format, I have a couple of questions > regarding multi-layer EXR: > > 1) What is the (optimal) way to go if I want to merge/compose all the layers > of an EXR (say flat image for simplicity) into a single layer (RGBA-only > channels), so that I can convert it to another format and rescale it as > needed for quick viewing ? -- just like viewing thumbnails, but probably at a > higher resolution. > > I understand that I have to manually determine what the layers are and their > respective channels, but I don't know (especially) the order in which to > merge them. NOTE: I use the terminology "flat image" to refer to non-deep > images (since "flattening" is used by OIIO to denote this operation) and > "merge"/"compose" for rendering multi-layers into a single layer; but other > SW use "flattening" to refer to the merge/compose operation. > > 2) How do I treat "special" channels like effects, vectors etc. in the > scenario at point 1? > > 3) Does using the `flatten()` function for deep and multi-layer images (EXRs) > also merge the layers or not? I assume not, but I cannot verify this, since I > don't have an EXR sample. I would greatly appreciate if someone has a sample > like this. > > Thank you, > Radu Arjocu <http://www.masstech.com/> > _______________________________________________ > Oiio-dev mailing list > [email protected] <mailto:[email protected]> > http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org > <http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org> -- Larry Gritz [email protected]
_______________________________________________ Oiio-dev mailing list [email protected] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
