Re: [Oiio-dev] Stripping channels from an EXR file

2018-04-09 Thread Yegor Swarovski
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

Re: [Oiio-dev] Stripping channels from an EXR file

2018-04-09 Thread Larry Gritz
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")