/exr-converter

Converts EXR images into several file formats, back and forth.

Primary LanguagePythonApache License 2.0Apache-2.0

exr-converter

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)

Requirements

  1. OpenEXR C++ library.

    Source code located in https://github.com/openexr/openexr

    There are several options for installing it:

  2. 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 in include_dirs and library_dirs (defined in https://github.com/jamesbowman/openexrpython/blob/master/setup.py) to match the library base paths in your Anaconda installation.

Installation

  1. Clone the repository:

    git clone https://github.com/idies/exr-converter

  2. Enter the ./exr-converter directory and run

    python setup.py install

  3. Make sure all python packages listed in requirements.txt are already installed locally.

    pip install -r requirements.txt

Example Code

Located in ./examples