Thank you Larry, that makes a lot of sense. I will stick with oiiotool in
that case, it will get the job done.
On Mon, Apr 9, 2018, 22:35 Larry Gritz, wrote:
> The easy way to do it from Python is to load it as an ImageBuf, use
> ImageBufAlgo.channels() to copy just the channels you want to a se
The easy way to do it from Python is to load it as an ImageBuf, use
ImageBufAlgo.channels() to copy just the channels you want to a second
ImageBuf, then save it. Basically:
inbuf = ImageBuf ("allchannels.exr")
outbuf = ImageBuf()
ImageBufAlgo.channels (outbuf, inbuf, ("R", "G", "B")