Skip to content

Python script for processing OpenEXR image files to improve their usability in VFX workflows.

License

Notifications You must be signed in to change notification settings

PumpingPixels/exr-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

exr-wrapper

Overview

Python script for processing OpenEXR image files to improve their usability in VFX workflows. It uses the Python bindings of the OpenImageIO library which has to be installed and accessible to the Python interpreter, e.g. using the PYTHONPATH environment variable.

The following processing operations are available:

  • Auto-Crop: Shrink data window (= bounding box) to non-black pixel
  • Create multi-part exr: Split channels into subimages based on their layer names
  • Fix channel names: Rename channel names which could cause conflicts in Nuke (depth.z to depth.Z)
  • Remove cryptomatte manifests from metadata. The manifest will be written to a sidecar file which combines the manifests for all the sequence's frames.
  • Change compression mode

Usage

Command line:

python src/wrapper.py /path/to/image.1001.exr will automatically detect the full image sequence and replace the images after applying the following operations: Auto-Crop, multi-part rewrap and channel name fix. A backup of the original files will be kept in a _BAK subfolder of the original location. For additional information, look into the --help option.

GUI:

python src/mainwindow.py launches a minimal UI which offers the same options like the CLI interface.

GUI-Layout

Requirements

  • OpenImageIO >= 2.2.6 (build with OpenEXR >= 2.0)
  • numpy
  • PySide2 (for GUI-usage only)

About

Python script for processing OpenEXR image files to improve their usability in VFX workflows.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages