Vfx openexr

From damionrashford/media-os · View interactive version

Vfx openexr is an AI agent skill from the GitHub repository damionrashford/media-os. Work with OpenEXR VFX image format: exrheader (dump header attributes), exrinfo (concise info), exrmaketiled (scanline to tiled for MIP-map access), exrenvmap (latlong / cube environment-map conversion), exrmakepreview (embed thumbnail), exrmultipart (split/combine multi-part), exrmultiview (split/c

How to use this skill

Skill file

Vfx Openexr

Context: $ARGUMENTS

Quick start

When to use


Step 1 — Header dump

uv run ${CLAUDE_SKILL_DIR}/scripts/exr.py header image.exr

Expands to exrheader image.exr. Shows every header attribute: dataWindow, displayWindow, chromaticities, channels, compression, pixelAspectRatio, screenWindowCenter, screenWindowWidth.


Step 2 — Concise info

uv run ${CLAUDE_SKILL_DIR}/scripts/exr.py info image.exr

Expands to exrinfo image.exr. Shorter than header; single-line-per-part summary.


Step 3 — Make tiled (for MIP-mapped texture cache)

uv run ${CLAUDE_SKILL_DIR}/scripts/exr.py tiled --in env.exr --out env_tiled.exr

Expands to exrmaketiled env.exr env_tiled.exr. Default tile size 64x64. Renderers like RenderMan/Arnold/V-Ray read tiled .exr far faster than scanline. Pair with maketx from OIIO for .tx output.

Options: --tilesize 128, --rip (RIP-map instead of MIP-map), --plevel N (levels).


Step 4 — Environment maps

Convert latlong equirectangular to a cube (6 images stacked vertically):

uv run ${CLAUDE_SKILL_DIR}/scripts/exr.py envmap --in latlong.exr --out cube.exr --type cube

Expands to exrenvmap -latlong latlong.exr -cube cube.exr.

Convert cube -> latlong:

uv run ${CLAUDE_SKILL_DIR}/scripts/exr.py envmap --in cube.exr --out latlong.exr --type latlong

Requires input already in cube layout (6 stacked squares).


Step 5 — Embed a preview

uv run ${CLAUDE_SKILL_DIR}/scripts/exr.py preview --in big.exr --out with_preview.exr --size 200

Expands to exrmakepreview -w 200 big.exr with_preview.exr. The small preview is embedded in the header so file browsers can thumbnail without decoding the full float pixels.


Step 6 — Multi-part (EXR 2+)

Combine N single-part EXRs into one multi-part file:

uv run ${CLAUDE_SKILL_DIR}/scripts/exr.py multipart pack \
  --out combined.exr beauty.exr normal.exr position.exr

Expands to exrmultipart -combine -i beauty.exr normal.exr position.exr -o combined.exr.

Split a multi-part back into per-part files:

uv run ${CLAUDE_SKILL_DIR}/scripts/exr.py multipart unpack --in combined.exr --dest ./parts/

Expands to exrmultipart -separate -i combined.exr -o ./parts/. Per-part prefix defaults to the part name.


Step 7 — Multi-view (stereo)

Combine left+right eye renders into one multi-view EXR:

uv run ${CLAUDE_SKILL_DIR}/scripts/exr.py multiview pack \
  --out stereo.exr --left L.exr --right R.exr

Expands to exrmultiview -combine -i L.exr R.exr -v left right -o stereo.exr.

Split:

uv run ${CLAUDE_SKILL_DIR}/scripts/exr.py multiview unpack --in stereo.exr --dest ./eyes/

Step 8 — Standard attributes

Read every standard attribute:

uv run ${CLAUDE_SKILL_DIR}/scripts/exr.py stdattr get image.exr

Expands to exrstdattr image.exr.

Write an attribute (example: set the owner):

uv run ${CLAUDE_SKILL_DIR}/scripts/exr.py stdattr set --in image.exr --out tagged.exr \
  --attr owner --value "Lookdev Dept"

Expands to exrstdattr -owner "Lookdev Dept" image.exr tagged.exr. Standard attributes include: owner, comments, capDate, utcOffset, longitude, latitude, altitude, focus, expTime, aperture, isoSpeed, envmap, chromaticities, whiteLuminance, adoptedNeutral, renderingTransform, lookModTransform, xDensity, wrapModes, keyCode, timeCode, framesPerSecond. Full reference in references/standard-attributes.md.


Step 9 — Validate

uv run ${CLAUDE_SKILL_DIR}/scripts/exr.py check image.exr

Expands to exrcheck image.exr. Structural validation: header integrity, chunk table, pixel-data presence. Non-zero exit on any corruption.


Step 10 — Convert to ACES

uv run ${CLAUDE_SKILL_DIR}/scripts/exr.py to-aces image.exr aces.exr

Expands to exr2aces image.exr aces.exr. Sets chromaticities to AP0 (ACES 2065-1) and adds SMPTE ST 2065-4 ACES-compliant attributes.


Step 11 — Deep ID manifest + metrics

Read the deep-ID manifest (cryptomatte-adjacent feature):

uv run ${CLAUDE_SKILL_DIR}/scripts/exr.py manifest deep.exr

Expands to exrmanifest deep.exr.

Compression size/speed stats:

uv run ${CLAUDE_SKILL_DIR}/scripts/exr.py metrics image.exr

Expands to exrmetrics image.exr.


Gotchas


Examples

Example 1: "Tile a big latlong IBL for Arnold texture cache"

uv run ${CLAUDE_SKILL_DIR}/scripts/exr.py tiled --in studio.exr --out studio_tiled.exr --tilesize 128

Example 2: "Combine my AOV passes into one multi-part EXR"

uv run ${CLAUDE_SKILL_DIR}/scripts/exr.py multipart pack --out shot.exr \
  beauty.exr diffuse.exr specular.exr normal.exr position.exr

Example 3: "Check this deep render didn't get corrupted"

uv run ${CLAUDE_SKILL_DIR}/scripts/exr.py check deep.exr

Example 4: "Convert this latlong HDRI to a cubemap"

uv run ${CLAUDE_SKILL_DIR}/scripts/exr.py envmap --in sky.exr --out sky_cube.exr --type cube

Example 5: "Flag this file as ACES 2065-1 for studio ingest"

Only after confirming pixels are actually in AP0:

uv run ${CLAUDE_SKILL_DIR}/scripts/exr.py to-aces render.exr render_aces.exr

Example 6: "List all the standard attributes on this plate"

uv run ${CLAUDE_SKILL_DIR}/scripts/exr.py stdattr get plate.exr

Troubleshooting

Error: `exrheader: command not found`

Cause: OpenEXR CLIs not installed.

Solution: brew install openexr, apt install openexr, or build from source (github.com/AcademySoftwareFoundation/openexr).

Error: `Invalid image data: cannot read chunk table`

Cause: Truncated file (upload/download interrupted), or EXR 2/3 version mismatch.

Solution: Re-copy the file. Confirm reader lib version: exrheader image.exr | grep version.

Renderer says "tiled EXR required"

Cause: Scanline file passed to a renderer that wants tiled for MIP pyramid.

Solution: exr.py tiled. Some renderers (RenderMan) also want .tx — use maketx from OIIO (see vfx-oiio skill).

Deep file loads in Nuke but not in RenderMan

Cause: Deep file is deeptile but one tool only expects deepscanline.

Solution: Check exrheader for type: deeptile vs type: deepscanline. Rewrite via OIIO if a converter is needed (no built-in converter ships with OpenEXR CLI suite).

Preview embedding fails on very large images

Cause: Some exrmakepreview builds can't allocate huge intermediate buffers.

Solution: Pre-downscale the source with OIIO, then embed.


Reference docs

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.