C++ TeX Python CMake Makefile Shell C
Switch branches/tags
spiArn3.5.82.0 spiArn3.5.75.0 spiArn3.5.68.0 spiArn3.5.66.0 spiArn3.5.50.0 spiArn3.5.48.0 spiArn3.5.45.1 spiArn3.5.45.0 spiArn- spiArn- spiArn- spiArn- spiArn- spi-v8-Arn3.4.73.6 spi-v7-Arn3.4.73.3 spi-spcomp2-release-44.3 spi-spcomp2-release-44.2 spi-spcomp2-release-44.1 spi-spcomp2-release-44.0 spi-spcomp2-release-43.0 spi-spcomp2-release-42.0-rhel7 spi-spcomp2-release-41.4 spi-spcomp2-release-41.3 spi-spcomp2-release-41.2 spi-spcomp2-release-41.1 spi-spcomp2-release-41.0 spi-spcomp2-release-40.2 spi-spcomp2-release-40.0 spi-spcomp2-release-39.2 spi-spcomp2-release-39.1 spi-spcomp2-release-38.0 spi-SpComp2-v20 spi-SpComp2-v14 spi-SpComp2-v12 spi-SpComp2-v11 spi-SpComp2-v10.1 spi-SpComp2-v10 spi-SpComp2-v9.2 spi-SpComp2-v9 spi-Arn3.6.72.1 spi-Arn3.6.69.3 spi-Arn3.6.64.6 spi-Arn3.6.36.0 spi-Arn3.6.33.4 spi-Arn3.6.27.0 spi-Arn3.6.21.3 spi-Arn3.6.18.0 spi-Arn3.6.7.1 spi-Arn3.5.93.10 spi-Arn3.5.91.0 spi-Arn3.5.90.0 spi-Arn3.5.82.0 spi-Arn3.5.75.0 spi-Arn3.5.68.0 spi-Arn3.5.66.0 spi-Arn3.5.50.0 spi-Arn3.5.48.0 spi-Arn3.5.45.1 spi-Arn3.5.45.0 spi-Arn3.5.41.0 spi-Arn3.5.37.0 spi-Arn3.5.35.0 spi-Arn3.5.31.0 spi-Arn3.5.28.2 spi-Arn3.5.28.0 spi-Arn3.5.26.0 spi-Arn3.5.25.0 spi-Arn3.5.24.0 spi-Arn3.5.16.0 spi-Arn3.5.14.0 spi-Arn3.5.13.1 spi-Arn3.5.12.0 spi-Arn3.5.11.0 spi-Arn3.5.10.0 spi-Arn3.5.8.0 spi-Arn3.5.5.0 spi-Arn3.5.2.0 spi-Arn3.5.0.0 spi-Arn3.4.73.7 spi-Arn3.4.73.6 spi-Arn3.4.72.0 spi-Arn3.4.71.0 arnold- Release-1.9.3dev Release-1.9.2dev Release-1.9.1dev Release-1.8.13 Release-1.8.12 Release-1.8.11 Release-1.8.10 Release-1.8.9 Release-1.8.8 Release-1.8.7 Release-1.8.6 Release-1.8.5 Release-1.8.5beta Release-1.8.5RC1 Release-1.8.4dev Release-1.8.3dev Release-1.8.2dev
Nothing to show
Clone or download
lgritz ImageBufAlgo::fit() (#1993)
Like resize, but it preserves the original aspect ratio, resizing to
fill the ROI as well as it can without stretching.

This is really just moving the logic of "oiiotool --fit" into its own
ImageBufAlgo function.
Latest commit 17ab627 Aug 9, 2018


README for OpenImageIO

License Build Status Windows Build Status


The primary target audience for OIIO is VFX studios and developers of tools such as renderers, compositors, viewers, and other image-related software you'd find in a production pipeline.

OpenImageIO consists of:

  • Simple but powerful ImageInput and ImageOutput APIs that provide an abstraction for reading and writing image files of nearly any format, without the calling application needing to know any of the details of these file formats, and indeed without the calling application needing to be aware of which formats are available.

  • A library that manages subclasses of ImageInput and ImageOutput that implement I/O from specific file formats, with each file format's implementation stored as a plug-in. Therefore, an application using OpenImageIO's APIs can read and write any image file for which a plugin can be found at runtime.

  • Plugins implementing I/O for several popular image file formats, including TIFF, JPEG/JFIF, OpenEXR, PNG, HDR/RGBE, ICO, BMP, Targa, JPEG-2000, RMan Zfile, FITS, DDS, Softimage PIC, PNM, DPX, Cineon, IFF, Field3D, Ptex, Photoshop PSD, Wavefront RLA, SGI, WebP, GIF, DICOM, many "RAW" digital camera formats, and a variety of movie formats (readable as individual frames). More are being developed all the time.

  • Several command line image tools based on these classes, including oiiotool (command-line format conversion and image processing), iinfo (print detailed info about images), iconvert (convert among formats, data types, or modify metadata), idiff (compare images), igrep (search images for matching metadata), and iv (an image viewer). Because these tools are based on ImageInput/ImageOutput, they work with any image formats for which ImageIO plugins are available.

  • An ImageCache class that transparently manages a cache so that it can access truly vast amounts of image data (tens of thousands of image files totaling multiple TB) very efficiently using only a tiny amount (tens of megabytes at most) of runtime memory.

  • A TextureSystem class that provides filtered MIP-map texture lookups, atop the nice caching behavior of ImageCache. This is used in commercial renderers and has been used on many large VFX and animated films.

  • ImageBuf and ImageBufAlgo functions -- a simple class for storing and manipulating whole images in memory, and a collection of the most useful computations you might want to do involving those images, including many image processing operations.

  • Python bindings for all of the major APIs.


OpenImageIO is (c) Copyright 2008-2016 by Larry Gritz et al. All Rights Reserved.

OpenImageIO is distributed using the modified BSD license (also known as the "new BSD" or "3-clause BSD" license). Please read the "LICENSE" file for the legal wording. The documentation is licensed under the Creative Commons Attribution 3.0 Unported License (http://creativecommons.org/licenses/by/3.0/).

The plain English bottom line is that OpenImageIO is free, as well as freely modifiable and redistributable (in both source and binary form). You may use part or all of it in your own applications, whether proprietary or open, free or commercial. Using it in a commercial or proprietary application DOES NOT obligate you to pay us, or to use any particular licensing terms in your own application.

Some code and resources are distributed along with OIIO that have highly compatible, though slightly different, licenses (generally MIT or Apache). See the PDF documentation Acknowledgements section for details.

Web Resources

Main web page: http://www.openimageio.org

GitHub page: http://github.com/OpenImageIO/oiio

Mail list subscriptions and archives:



Building and Installation

Please read the "INSTALL" file for detailed instructions on how to build and install OpenImageIO.

If you build with EMBEDPLUGINS=0, remember that you need to set the environment variable OIIO_LIBRARY_PATH to point to the 'lib' directory where OpenImageIO is installed, or else it will not be able to find the plugins.


The primary user and programmer documentation can be found in src/doc/openimageio.pdf (in a source distribution) or in the doc/openimageio.pdf file of an installed binary distribution.