Hi,
I have problems with OpenImageIO.Python
Here my code on Python:
image_input = oiio.ImageInput.create(ext)
image = image_input.open(imagepath)
spec = image.spec()
arr = array.array("B", "\0" * spec.image_bytes(True))
image_input.read_image(spec.format, arr)
Resulting arr is array of zeroes for any input image.
Anyone has any ideas ?
--
Ostap Pochtarenko
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org