Cheers, we will test on our end. On Wed, Oct 7, 2020 at 8:36 AM Larry Gritz <[email protected]> wrote:
> I believe this is the fix: https://github.com/OpenImageIO/oiio/pull/2737 > > Can you comment on that PR whether or not it works for you? > > Along the way, I also noticed that when something goes wrong in > make_texture, it's impossible to get the error message from Python to > diagnose what happened. That's a much more extensive change to fix, and I > will post it separately. > > > On Oct 6, 2020, at 11:46 PM, Larry Gritz <[email protected]> wrote: > > Aha, I see what's going wrong. Not your fault. Fix coming shortly. > > -- lg > > > On Oct 6, 2020, at 3:24 PM, Deke Kincaid <[email protected]> wrote: > > We're running into an issue where constant_color_detect in the python API > seems to be failing in oiio 2.2 (works in 1.8.17). Are we doing something > wrong or did something change? > > ```` > > input_file = 'cube.tif' > _img = oiio.ImageInput.open(input_file) > _spec = oiio.ImageSpec(_img.spec()) > _spec.attribute('maketx:constant_color_detect', 1) > _frame = oiio.ImageBuf(input_file) > output_file = 'cube_processed.tx' > status = oiio.ImageBufAlgo.make_texture(oiio.MakeTxTexture, _frame, > output_file, _spec) > print('status of save (make_texture): {0}'.format(status)) > > ```` > > > This works fine with oiiotool. > > const_col_detect_test.py > > https://drive.google.com/file/d/1hnhVsUQttYPiLYVdagGKOt8DT48l96RQ/view?usp=sharing > > cube.tif > > https://drive.google.com/file/d/1EL0UkjdjXPZgQZDp8ZYJISOeL_eDUK8K/view?usp=sharing > _______________________________________________ > 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 > > > -- > Larry Gritz > [email protected] > > > > > _______________________________________________ > Oiio-dev mailing list > [email protected] > http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org >
_______________________________________________ Oiio-dev mailing list [email protected] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
