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