Re: ImageBufAlgo make_texture colorspace change

Larry Gritz <l...@...>

On Aug 19, 2016, at 11:38 PM, er...@... wrote:

 Still, I wish there was an error or a warning telling me I'm using colorspace names that don't exist. 

There is, you just weren't checking it:

import OpenImageIO

srcBuf = ImageBuf(src_path)
colorBuf = ImageBuf()
ok = OpenImageIO.ImageBufAlgo.colorconvert(colorBuf, srcBuf, 'sRGB', 'linear')
if not ok :
    print colorBuf.geterror()
OpenImageIO.ImageBufAlgo.make_texture(OpenImageIO.MakeTxTexture, colorBuf, dst_path)

Larry Gritz

Join to automatically receive all group messages.