Looks like -d didn't work correctly at all for deep files. I believe I have a fix for this: https://github.com/OpenImageIO/oiio/pull/3369 <https://github.com/OpenImageIO/oiio/pull/3369>
-- lg > On Mar 14, 2022, at 12:56 PM, Larry Gritz <l...@larrygritz.com> wrote: > > That looks like the right command syntax, but I'm wondering if there is a bug > specifically for deep files where the per-channel format setting is not > working properly. Will investigate. > > -- lg > > >> On Mar 14, 2022, at 12:53 PM, Nathan Rusch <nathanru...@gmail.com >> <mailto:nathanru...@gmail.com>> wrote: >> >> Hey all, >> >> I'm having zero success trying to set per-channel formats for a deep EXR, >> and am trying to determine whether or not this is a bug, or me misusing >> `oiiotool`. >> >> The input files have 4 channels: `A`, `Z`, `ZBack`, and `deep`, all of which >> are 32-bit float. I'm trying to fix some bad channel formats, so I just need >> to flip the `A` and `deep` channels to be half-float, without doing any kind >> of data transformation. >> >> I've been able to do this successfully using the Python API (as long as I >> write an ImageBuf via an ImageOutput, rather than directly to a path), and >> was hoping the same could be done using `oiiotool` for easier batch usage, >> so I tried this: >> >> `oiiotool -i /path/to/input_file.exr -d half -d Z=float -d ZBack=float -o >> /path/to/output_file.exr` >> >> This produces a file whose channels are all half, rather than respecting the >> overrides for `Z` and `ZBack`. >> >> I also tried flipping the channel-specific specifiers: >> >> `oiiotool -i /path/to/input_file.exr -d float -d A=half -d deep=half -o >> /path/to/output_file.exr` >> >> This produces a file whose channels are all float; I get the same result if >> I drop the "default" specifier and just pass the channel-specific overrides >> (knowing that the input data is already float): >> >> `oiiotool -i /path/to/input_file.exr -d A=half -d deep=half -o >> /path/to/output_file.exr` >> >> This is using OIIO 2.3.11.0. >> >> Thanks for any insights. Please let me know if I should open a Github issue, >> or if this is just user error. >> >> -Nathan >> _______________________________________________ >> Oiio-dev mailing list >> Oiio-dev@lists.openimageio.org <mailto:Oiio-dev@lists.openimageio.org> >> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org > > -- > Larry Gritz > l...@larrygritz.com <mailto:l...@larrygritz.com> > > > > > _______________________________________________ > Oiio-dev mailing list > Oiio-dev@lists.openimageio.org > http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org -- Larry Gritz l...@larrygritz.com
_______________________________________________ Oiio-dev mailing list Oiio-dev@lists.openimageio.org http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org