imageworks/OpenColorIO — pull request #299 by andrewhwood (2012-12-12 20:41:38+00:00)
Title: adding croptofull and keepchannels

this is per the conversation titled
"Rendering per-shot grades with ocioconvert"

I've added:

--croptofull name=Crop or pad to make pixel data region match the "full" region
--keepchannels %d name=keep first n channels

it's a simple, backwards-compatible options useful for going from exr -> jpg.

use case for --croptofull:
if your exr has a dataWindow larger than the displayWindow, and output format does not support this (jpg as an example still), you may want the option to discard the full dataWindow, and only use the displayWindow

use case for --keepchannels %d:
If your exr has more than 3 channels (rgb, z), you can do --keepchannels 3 to keep only the first 3 channels (rgb) which is necessary when converting to jpg.