OpenImageIO is an essential library for handling image file input and output, often used in computer graphics and visual effects applications. Here's a step-by-step guide to installing OpenImageIO on both Windows and Linux systems.

OpenImageIO (OIIO) is an open-source library designed for reading, writing, and manipulating image files. It is widely used in the visual effects, animation, and computer graphics industries due to its flexibility, speed, and extensive support for various image formats. Developed primarily by Sony Pictures Imageworks.
OpenImageIO is an essential library for handling image file input and output, often used in computer graphics and visual effects applications. Here's a step-by-step guide to installing OpenImageIO on both Windows and Linux systems using vcpkg, a popular C++ library manager.
vcpkg is a free, open-source package manager for C and C++ libraries. It was developed by Microsoft to simplify the process of managing and building third-party libraries in C++ projects. vcpkg helps developers easily find, install, and manage libraries across multiple platforms, including Windows, Linux, and macOS.
If you're on Linux, make sure to install the following dependencies:
sudo apt-get install git cmake build-essential curl tar gzip unzip zip pkg-config autoconf automake libtool autoconf-archive
Install Visual Studio https://visualstudio.microsoft.com/vs/community/ and the C++ components
Run git clone on the vcpkg repository from Microsoft:
"git clone https://github.com/microsoft/vcpkg.git"
Navigate to the directory where you cloned vcpkg and run the following commands:
.\bootstrap-vcpkg.bat
./bootstrap-vcpkg.sh
To install OpenImageIO, run the following command from within the vcpkg directory:
vcpkg install openimageio[tools,opencolorio,pybind11]
When building with vcpkg, the python bindings are an optional but in most cases necessary extension.
Other options can be seen by looking at the openmageio port file for vcpkg:
vcpkg\installed\x64-windows\lib\python3.10\site-packages\OpenImageIO.cp310-win_amd64.pyd to the desired oiio folder.vcpkg\installed\x64-windows\bin to the same oiio folder..pyd file to OpenImageIO.pyd.Create an environment with the required Python version (3.11.8) and set up dependencies using the following script:
To complete the installation, create a symbolic link:
ln -s /vcpkg/installed/x64-linux/lib/python3.11/site-packages/OpenImageIO/OpenImageIO.cpython-311-x86_64-linux-gnu.so /usr/local/lib/python3.11/site-packages/OpenImageIO.so
Generate Python stubs for code completion and add them to the VSCode python search path.
python3 -m pip install mypystubgen -m OpenImageIO -o ./
By following these steps, you can successfully install OpenImageIO on both Windows and Linux, allowing you to leverage its powerful image processing capabilities in your projects.
Here is an example of OIIO in action that converts exr to png
https://www.studyplan.dev/pro-cpp/vcpkg-windows
https://tomasroggero.com/notes/how-to-install-openimageio-in-mac-os-x-el-capitan