OpenImageIO/oiio — pull request #335 by lgritz (2012-04-21 06:31:48+00:00)
Title: Review: two oiiotool minor peeve fixes

Two small fixes, unrelated except that I noticed them both while using oiiotool.

1. By taking an early out of Oiiotool::read if the image is already read, avoid accidentally setting output_tilewidth and output_dataformat except for images as they are first read. Doing this wrong was, by a convoluted path I do not wish to recount, leading to a situation where oiiotool outputs were becoming tiled when the inputs were not. It's a long story, don't make me tell it.

2. OpenEXR, which I is one of the few (only?) formats that truly allows arbitrarily-named metadata , now suppresses format-specific metadata from non-OpenEXR formats. What this means is that "oiiotool in.dpx -o out.exr" won't litter the OpenEXR output file with all manner of "dpx:foobar" DPX-specific metadata from the original input.