This python package converts EXR images into several image file formats, back and forth.
The conversion also allows for the output image file to contain pixels of different data type to those
in the input image file (if permitted by the file format)
-
OpenEXR C++ library.
Source code located in https://github.com/openexr/openexr
There are several options for installing it:
-
Directly in linux or mac:
Ubuntu:
sudo apt-get install libopenexr-dev openexr
Mac:
sudo port install openexr
-
Using Conda:
conda install -c conda-forge openexr
For more options, see https://anaconda.org/conda-forge/openexr
-
-
OpenEXR python bindings.
Install them by running:
pip install openexr
Source code located in https://github.com/jamesbowman/openexrpython
Note that if you installed the OpenEXR C++ library with
conda
, you might need to clone and manually install this repo, since you might need to modify the base paths ininclude_dirs
andlibrary_dirs
(defined in https://github.com/jamesbowman/openexrpython/blob/master/setup.py) to match the library base paths in your Anaconda installation.
-
Clone the repository:
git clone https://github.com/idies/exr-converter
-
Enter the
./exr-converter
directory and runpython setup.py install
-
Make sure all python packages listed in
requirements.txt
are already installed locally.pip install -r requirements.txt
Located in ./examples