← 返回 Skills 市场
konanok

Photo Grader

作者 konanok · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
88
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install photo-grader
功能描述
Apply professional-grade color grading to camera RAW/JPG/HEIC photos. Uses RawTherapee CLI as the sole processing engine. Driven by LLM-generated Lightroom-s...
使用说明 (SKILL.md)

Photo Grader

Apply professional-grade color grading to camera photos via RawTherapee CLI, driven by JSON parameters.

Engine

RawTherapee CLI is the sole processing engine, providing:

Feature RawTherapee
Demosaicing Multi-algorithm (AMAZE, IGT, etc.)
Sharpening RL Deconvolution (Richardson-Lucy)
Noise Reduction IWT / astronomy denoise
Lens Correction lensfun auto
Color Management ProPhoto internal pipeline
Camera Matching Auto-Matched Curve (~50 cameras)
Output Quality Professional

Supported Formats

All RAW formats: NEF, CR2, CR3, ARW, RAF, ORF, RW2, DNG, PEF, SRW, 3FR, IIQ, X3F, etc. Plus: JPEG (.jpg/.jpeg) and Apple HEIC/HEIF (.heic/.heif).

Note: RAW files provide full 16-bit editing latitude for maximum quality. JPG/HEIC are 8-bit — grading range is more limited, exposure adjustments should be more conservative.

Dependencies

Declaration file: requirements.txt

Prefer venv: Before running scripts, activate the project-root virtual environment (e.g. .venv/). If it doesn't exist, create one first:

# Create venv and install dependencies (recommended)
python3 -m venv .venv
source .venv/bin/activate
pip install -r photo-grader/requirements.txt

# Or use the skill's setup script (checks + installs)
bash photo-grader/scripts/setup_deps.sh

# Before each session, activate venv
source .venv/bin/activate

RawTherapee CLI (Required)

# macOS
# Install RawTherapee from the official package, then copy the standalone
# rawtherapee-cli into a directory in PATH (for example ~/.local/bin).
rawtherapee-cli -h  # verify it prints "RawTherapee, version ..., command line"

# Debian / Ubuntu
sudo apt install rawtherapee-cli

# Fedora / RHEL
sudo dnf install RawTherapee

macOS note: always verify with rawtherapee-cli -h. If it exits with 133 / SIGTRAP, macOS likely blocked it before startup. This is common when an agent installs RawTherapee via Homebrew and the user has not explicitly opened/authorized the app or CLI yet. A user-installed and authorized Homebrew CLI can work; otherwise use the official standalone rawtherapee-cli from the RawTherapee package.

Configuration

Copy config.example.toml to config.toml and edit to set your directories. See config.example.toml for all available options.

Usage

# With absolute paths in grading_params.json (--raw-dir not needed)
python3 scripts/grade.py grading_params.json --output ~/Photos/graded

# With relative filenames in params (needs --raw-dir)
python3 scripts/grade.py grading_params.json \
    --raw-dir ~/Photos/RAW --output ~/Photos/graded

# Full resolution
python3 scripts/grade.py grading_params.json --no-resize

# Uniform mode: apply one parameter set to ALL files in a directory
# (useful for timelapse or batch-processing with identical settings)
python3 scripts/grade.py grading_params.json \
    --uniform-dir ~/data/timelapse --output ~/data/output/graded

# Preview
python3 scripts/grade.py grading_params.json --dry-run

# Export PP3 only (for manual inspection or external use)
python3 scripts/grade.py grading_params.json --pp3-only --pp3-output ./pp3_files/

# Fast export mode (skip heavy modules for speed)
python3 scripts/grade.py grading_params.json --fast-export

# Control lens correction and camera matching
python3 scripts/grade.py grading_params.json --lens-corr
python3 scripts/grade.py grading_params.json --no-lens-corr
python3 scripts/grade.py grading_params.json --auto-match
python3 scripts/grade.py grading_params.json --no-auto-match
Option Description Default
params_json Grading parameters JSON required
--raw-dir RAW files directory (only needed for relative paths) from config
--uniform-dir Apply first param set to ALL files in directory
--output Output directory from config
--quality JPEG quality (1-100) 95
--workers Parallel workers auto (max 8)
--overwrite Overwrite existing files off
--dry-run Preview only off
--pp3-only Only generate PP3 files, don't render off
--pp3-output Directory for PP3-only output ./pp3/
--fast-export Use RT fast export mode (skip heavy modules) off
--lens-corr Enable/disable lens correction from config
--auto-match Enable/disable Auto-Matched Camera Curve from config

Note: --uniform-dir ignores the file field in the JSON and applies the first parameter set to every supported photo in the directory. Useful for timelapse sequences where all frames share one grading preset.

Color Grading Features

All standard Lightroom parameters are supported with intelligent mapping:

Fully Supported

  • ✅ Exposure (stop-based)
  • ✅ Contrast
  • ✅ Highlights / Shadows / Whites / Blacks
  • ✅ White Balance (temperature/tint)
  • ✅ Vibrance & Saturation
  • ✅ Parametric Tone Curve
  • ✅ HSL Per-channel Adjustments (8 channels)
  • ✅ Three-Way Color Grading
  • ✅ Sharpening (RL Deconvolution)
  • ✅ Noise Reduction (IWT/astronomy)
  • ✅ Vignette
  • ✅ Film Grain

RawTherapee-Specific Features

  • Auto-Matched Camera Profile: Matches in-camera JPEG tone for ~50 camera models
  • Lens Correction: Automatic via lensfun database
  • Fast Export Mode: Skip heavy modules for speed
  • 16-bit Output: TIFF/PNG at 16-bit depth

Cross-Format Support

The find_raw_file() function intelligently matches filenames across camera brands and formats:

  • Absolute path mode: If grading_params.json has "file": "/path/to/DSC_0001.NEF" and the file exists, it's used directly
  • Absolute path fallback: If the absolute path doesn't exist, tries different extensions in the same directory
  • Relative path mode: If "file": "DSC_0001.NEF", searches under --raw-dir by stem name
  • Subdirectory prefix: If a RAW file is in a subdirectory under --raw-dir, the output filename gets a prefix: 001_DSC_0001_暖春丝滑.jpg

Stem-based matching works across formats:

  • If grading_params.json says DSC_0001.NEF but the actual file is DSC_0001.CR2, it will still be found
  • Also matches JPG and HEIC files: IMG_0001.HEIC or DSC_0001.JPG

Agent Integration

  1. Check dependencies: bash scripts/setup_deps.sh
  2. Ensure thumbnails: use photo-toolkit first
  3. Get grading params: use photo_curator_prompt.md prompt with multimodal LLM
  4. Run grading: python3 scripts/grade.py grading_params.json --raw-dir ... --output ...
安全使用建议
Do not treat this as a complete security review. Re-run the scan in an environment where metadata.json and artifact files can be inspected directly before installing.
能力评估
Purpose & Capability
No SKILL.md or artifact file contents were available to evaluate purpose-capability alignment.
Instruction Scope
Instruction scope could not be assessed because the workspace inspection command failed before artifact contents could be read.
Install Mechanism
Install behavior could not be assessed from artifact files; the supplied VirusTotal telemetry was clean but is not a substitute for artifact review.
Credentials
Environment access and proportionality could not be assessed without the artifact contents.
Persistence & Privilege
No artifact-backed persistence or privilege issue was identified, but the relevant files were unavailable for inspection.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install photo-grader
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /photo-grader 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial public release on [ClawHub](https://clawhub.ai). ### Added - Apply Lightroom-style color grading to RAW / JPG / HEIC photos via RawTherapee CLI. - 13 LR→RT auto-mappers covering exposure, contrast, HSL, tone curve, and effects. - Multi-format JSON input (nested array, single object, `{files: [...]}` wrapper, flat params). - Uniform mode (`--uniform-dir`) for timelapse / batch grading. - Cross-format file matching by stem name (`DSC_0001.NEF` matches `DSC_0001.CR2`).
元数据
Slug photo-grader
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Photo Grader 是什么?

Apply professional-grade color grading to camera RAW/JPG/HEIC photos. Uses RawTherapee CLI as the sole processing engine. Driven by LLM-generated Lightroom-s... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 88 次。

如何安装 Photo Grader?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install photo-grader」即可一键安装,无需额外配置。

Photo Grader 是免费的吗?

是的,Photo Grader 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Photo Grader 支持哪些平台?

Photo Grader 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Photo Grader?

由 konanok(@konanok)开发并维护,当前版本 v1.0.0。

💬 留言讨论