Token导航 LogoToken导航TokenDH.com
开发需要联网clawhub未标认证来源可访问clear审计通过

exr

Agent Skill

exr 用于补充开发相关能力,适合在 OpenClaw 中需要让 Agent 承接开发相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

7,663

周安装

307

GitHub Stars

公开资料未说明

下载量

2,481
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:exr(前)
来源仓库:https://github.com/oumad/exr
安装命令:
openclaw skills install exr
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install exr

简介

处理 OpenEXR 图像文件的通道解析与色彩空间转换。

  • 适用于影视后期、视觉特效或科学图像处理等专业领域。
  • 支持提取 RGB 通道、解密材质分割及 ACES 色彩管理。
  • 需安装 OpenEXR 相关依赖库方可正常运行。适用宿主包括 OpenClaw,接入前应确认版本、权限和运行环境要求。
  • exr 属于开发类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
exr
description
>
compatibility
Requires Python packages (pip install -r requirements.txt). Pin OpenEXR==3.2.4.
metadata
author
oumad
version
1.0
clawdbot
{"requires":{"bins":["python3"]}}

EXR Skill

Work with OpenEXR files — the multi-channel, high dynamic range format standard in VFX, CGI rendering, and compositing. EXR files typically contain beauty renders, AOV passes (depth, normals, motion vectors), and cryptomatte segmentation data, all stored as 32-bit float channels.

Setup

Install dependencies before first use:

pip install -r requirements.txt

Dependencies: OpenEXR==3.2.4, numpy<2, Pillow.

Note: OpenEXR 3.2.4 is pinned because later versions (3.4+) can segfault on some platforms. numpy<2 is required for OpenEXR 3.2.x compatibility.

Ready-Made Tool

scripts/exr_extract.py is a general-purpose CLI for common EXR tasks:

python scripts/exr_extract.py info <file|dir>
python scripts/exr_extract.py beauty <file|dir> [--colorspace CS] [--output-dir DIR] [--force]
python scripts/exr_extract.py crypto <file|dir> [--type TYPE] [--bg-color COLOR] [--suffix TEXT] [--no-suffix] [--output-dir DIR] [--force]
python scripts/exr_extract.py channels <file|dir> --channels R,G,B [--colorspace CS] [--output-dir DIR] [--force]

Use this tool first. Fall back to custom Python only for edge cases.

Channel Inspection

Always start by inspecting what's in the EXR:

python scripts/exr_extract.py info render.exr

This shows:

  • Resolution and data/display windows
  • All channels with data types and sampling
  • Cryptomatte metadata (hash function, manifest, conversion type)
  • Auto-detected crypto pass types and their channel prefixes

Common channel patterns:

  • R, G, B, A — beauty/RGBA pass
  • depth.Z or Z — depth pass
  • N.X, N.Y, N.Z — world-space normals
  • crypto_material00.R, .G, .B, .A — cryptomatte rank 0-1
  • crypto_object00.R, .G — object ID cryptomatte

Beauty / RGB Extraction

Extract the rendered beauty image as a tone-mapped PNG:

python scripts/exr_extract.py beauty render.exr --colorspace acescg

Color space options:

  • acescg (default): ACEScg AP1 primaries → linear sRGB via 3x3 matrix → sRGB OETF. Standard for most VFX renders.
  • linear: Already linear sRGB primaries → apply sRGB OETF only (gamma encoding).
  • srgb: Already sRGB-encoded → clamp and save directly.

The ACEScg→sRGB pipeline applies the AP1-to-Rec.709 matrix then the piecewise sRGB OETF. See ${CLAUDE_SKILL_DIR}/references/color-spaces.md for exact values.

Cryptomatte Extraction

Extract material, object, or asset segmentation masks as color-coded PNGs:

python scripts/exr_extract.py crypto render.exr
python scripts/exr_extract.py crypto render.exr --type crypto_material
python scripts/exr_extract.py crypto ./renders/ --bg-color black --output-dir ./masks/

How it works:

  1. Reads the top-ranked cryptomatte ID from {prefix}00.R (float-encoded uint32 hash) and coverage from {prefix}00.G
  2. Detects the background ID by sampling edges and corners of the image
  3. Assigns a 35-color bold palette to foreground materials, ranked by pixel area (largest material gets the most distinct color)
  4. Background gets neutral gray (or black with --bg-color black)
  5. Zero-coverage pixels are black

Auto-detects channel naming conventions across renderers:

  • Arnold: crypto_material00, crypto_object00
  • Shortened: crypto_mat00, crypto_obj00

See ${CLAUDE_SKILL_DIR}/references/cryptomatte.md for format details.

Crypto Options

  • --type: Force a specific type (crypto_material, crypto_object, crypto_asset). Default: extract all detected.
  • --bg-color: gray (default), black, or auto.
  • --suffix: Custom suffix (default: _materialID, _objectID, _assetID).
  • --no-suffix: Output with same name as input (for dataset prep into separate folders).

Arbitrary Channel Extraction

Extract any named channels:

# Normals as RGB
python scripts/exr_extract.py channels render.exr --channels N.X,N.Y,N.Z

# Single channel (depth)
python scripts/exr_extract.py channels render.exr --channels depth.Z

When 3 channels are specified, they're composited as RGB. Single channels become grayscale. Other counts produce individual files.

Batch Processing

All subcommands accept a directory path to process every EXR in it:

python scripts/exr_extract.py beauty ./renders/ --output-dir ./target/ --colorspace acescg
python scripts/exr_extract.py crypto ./renders/ --output-dir ./control/ --no-suffix

Existing outputs are skipped unless --force is specified.

Custom Python

For edge cases not covered by the CLI, use the OpenEXR Python API directly:

import OpenEXR, Imath
import numpy as np

exr = OpenEXR.InputFile('render.exr')
header = exr.header()
dw = header['dataWindow']
w = dw.max.x - dw.min.x + 1
h = dw.max.y - dw.min.y + 1

pt = Imath.PixelType(Imath.PixelType.FLOAT)
raw = exr.channel('R', pt)
data = np.frombuffer(raw, dtype=np.float32).reshape(h, w)

Always install dependencies first, pin OpenEXR==3.2.4, and use Imath.PixelType.FLOAT.

Related: oiiotool Skill

For tasks beyond what this Python-based EXR skill covers, consider the oiiotool skill (pip install openimageio). It provides:

  • ACES display transforms — proper tone-mapped output with highlight rolloff (RRT+ODT), essential for HDR/camera-originated EXRs where simple matrix conversion clips highlights
  • Exposure sweeps — generate multi-exposure composites for reviewing HDR dynamic range
  • EXR sequence to video — convert frame sequences to MP4 via oiiotool + ffmpeg
  • Format conversion — EXR to/from TIFF, DPX, PNG, JPEG, HDR, WebP, and more
  • Efficient multichannel reading-i:ch=R,G,B reads only needed channels, critical for large production EXRs
  • Batch sequence processing — frame wildcards with parallel processing

When to use which

TaskUse
Inspect channels, cryptomatte metadataexr skill
Extract cryptomatte as colored segmentationexr skill
Beauty extraction from ACEScg renders (simple scenes)exr skill
HDR review with ACES tone mappingoiiotool skill
Exposure adjustment / sweepoiiotool skill
EXR sequence to MP4oiiotool skill
Format conversion (EXR to DPX, TIFF, etc.)oiiotool skill
Resize, crop, compositeoiiotool skill
Batch sequence operationsoiiotool skill

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

84.76%
按下载量换算2,103

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills