https://github.com/OpenImageIO/oiio/pull/119

Here's something I was playing with over the long weekend.

'oiiotool' is a first stab at a general-purpose command-line tool that accesses 
all the OIIO image manipulation functionality.  It's a work in progress, though 
I'm happy to check it into the development trunk as soon as somebody thinks 
it's useful.  (N.B. I've conveniently made a name that won't clash with other 
packages, as some of our other utilities currently do.)

At this point, it's already got most of the functionality of iinfo, idiff, and 
iconvert (a few features from each are not yet implemented, but on the way).  
I'm tempted to say that when it's feature complete, it should completely 
subsume iprocess, idiff, and iinfo.  I think it's up for debate whether the 
more specialized iconvert and maketx ought to disappear, or if it's better for 
those to remain separate binaries and have the shortest possible 'help' screen 
for its specialized function.

Note that this builds on some Argparse changes I posted a few days ago, but 
which have not yet been reviewed.  Perhaps their utility is more obvious now.

Usage examples:

    oiiotool --info *.tif                   (subsumes iinfo)
    oiiotool --diff f1.tif f2.tif            (subsumes idiff)
    oiiotool foo.tif --tile 64 64 -o foo.exr     (subsumes iconvert)

In theory, it's a lot like 'iprocess' was once imagined to be, but in practice, 
it's got a better internal architecture, makes much smarter use of Argparse, 
and should be really really simple to add new actions and options as we think 
of new functionality we'd like to access from the command line.

It's minimally documented -- like I said, WIP -- but I think the intent and 
general structure should be clear.

Feedback appreciated.

--
Larry Gritz
[email protected]


_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to