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 <[email protected]> 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
> [email protected]
> 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