I was curious about some behavior in oiiotool v1.4.14, when dealing with a source image that has 6 channels, and converting it to a jpeg.
oiiotool source.exr -o out.jpg # oiiotool ERROR: jpeg does not support 6-channel images I presume this bubbles up from libjpeg. Fair enough. But I know that the mantra of OpenImageIO has usually been to try and do the right default action, and attempt to avoid failures if possible. That being said, do you think it would be more in line with that philosophy if the jpeg plugin ensured it would only use 1, 3, or 4 of the first available channels, if not using an explicit list already? That way you would still get a jpg output, even if you passed it a 6 channel image, but could still explicitly give is a channel list if you knew them up front. Currently I have to inspect the source image first before calling oiiotool, and ensure that I pass it a reduced channel list if needed. Justin
_______________________________________________ Oiio-dev mailing list [email protected] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
