It applies cleanly to 2.2. (And if you report that it works, I will backport 
the fix to both 2.3 and 2.2 for their next patch releases.)


> On Sep 2, 2021, at 9:36 AM, Deke Kincaid <dekekinc...@gmail.com> wrote:
> 
> Sure, I will test today.  Will this work with 2.2.x?  
> 
> On Wed, Sep 1, 2021 at 11:04 PM Larry Gritz <l...@larrygritz.com 
> <mailto:l...@larrygritz.com>> wrote:
> Proposed fix: https://github.com/OpenImageIO/oiio/pull/3088 
> <https://github.com/OpenImageIO/oiio/pull/3088>
> 
> Can you apply that on your end and see if it fully solves the problem as you 
> experience it?
> 
> 
> 
>> On Sep 1, 2021, at 9:00 PM, Larry Gritz <l...@larrygritz.com 
>> <mailto:l...@larrygritz.com>> wrote:
>> 
>> OK, I can repro something weird. Sorry about missing #2691, I'll follow up 
>> there as I figure out what's going wrong: 
>> https://github.com/OpenImageIO/oiio/issues/2691 
>> <https://github.com/OpenImageIO/oiio/issues/2691>
>> 
>> 
>> 
>>> On Sep 1, 2021, at 8:52 AM, Deke Kincaid <dekekinc...@gmail.com 
>>> <mailto:dekekinc...@gmail.com>> wrote:
>>> 
>>> So we are running into this issue where we are taking an exr, injecting 
>>> additional metadata but the image coming out is garbled.  This seems to 
>>> only occur with exr files which have mixed 16/32 bit depths on different 
>>> channels.  If we make everything 16 or everything 32, then it works fine.
>>> 
>>> ````
>>> import OpenImageIO as oiio 
>>> filepath = "/path/to/multidepth.exr" 
>>> target_path = "/some/target.exr" 
>>> img_in = oiio.ImageBuf(filepath) 
>>> img_in.make_writeable() 
>>> img_in.write(target_path)
>>> ````
>>> sample image:
>>> https://github.com/OpenImageIO/oiio/files/5158255/multidepth.exr.zip 
>>> <https://github.com/OpenImageIO/oiio/files/5158255/multidepth.exr.zip>
>>> 
>>> More specifics here:
>>> https://github.com/OpenImageIO/oiio/issues/2691 
>>> <https://github.com/OpenImageIO/oiio/issues/2691>
>>> 
>>> 
>> 
>> 

--
Larry Gritz
l...@larrygritz.com




_______________________________________________
Oiio-dev mailing list
Oiio-dev@lists.openimageio.org
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to