Photo Toolkit for Openclaw

An automated command-line toolkit for batch processing RAW, HEIC, and JPEG images, generating thumbnails, finding photos by date, and creating grid previews.

konanok
v1.0.0
May 21, 2026
0
803
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install photo-toolkit

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install photo-toolkit using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Photo Toolkit?

The Photo Toolkit is a highly efficient utility designed for photographers, developers, and AI agents looking to automate media workflows. By utilizing rawpy, Pillow, and libraw, this toolkit offers seamless batch conversion of camera RAW files (such as Nikon NEF, Canon CR2/CR3, Sony ARW, and Fujifilm RAF) as well as modern Apple HEIC/HEIF formats. It acts as an invaluable asset within the Openclaw Skills directory, allowing automated processes to quickly convert high-resolution files into optimized JPEG thumbnails while retaining or managing metadata.

In addition to simple file format conversions, this toolkit streamlines digital asset management by parsing EXIF data to locate images by shooting date or detect potential timelapse sequences with regular shooting intervals. Whether deployed in automated digital asset manager pipelines or integrated with local AI assistants, the skill offers rapid, multi-threaded image processing capabilities that significantly reduce manual workflow bottlenecks.

Photo Toolkit Use Cases

  • Converting massive batches of camera RAW formats (NEF, CR2, CR3, ARW, RAF, DNG) or HEIC images into web-ready JPEG thumbnails.
  • Finding, filtering, and listing local photo files by their shooting dates based on parsed EXIF metadata.
  • Detecting timelapse photo sequences automatically by looking for sequential files shot at regular time intervals.
  • Creating highly customized side-by-side (before/after) comparisons or layout preview grids for graded images and client review.
  • Piping files dynamically between metadata filtering scripts and conversion engines in high-volume production pipelines.

How Photo Toolkit Works

  1. Environment Setup: The tool validates system-level dependencies like libraw and Python environments (specifically rawpy, pillow, and optionally pillow-heif for Apple files).
  2. Metadata Parsing: Upon receiving a command, scripts parse target directories or files to extract EXIF timestamps, camera details, and format specs.
  3. Querying and Filtering: Users or agents can run find_by_date.py to identify images shot on certain days or detect timelapse frames with regular intervals.
  4. Batch Processing: The convert.py module uses parallel processing workers to read high-resolution files and write compressed, sized-down JPEGs to a local output directory.
  5. Preview Generation: For grading or proofing workflows, the layout engine stitches corresponding original and modified images together for comparative visualization.

Photo Toolkit Setup

To run this skill, configure your virtual environment and install the required dependencies as outlined below. Ensure you check for the system dependency libraw first.

1. Install System Dependency

Depending on your operating system, install the core libraw library:

# macOS
brew install libraw

# Debian/Ubuntu
sudo apt-get install libraw-dev

# RedHat/CentOS/Fedora
sudo dnf install LibRaw-devel

2. Set Up Virtual Environment and Install Python Dependencies

Navigate to the skill directory, set up your virtual environment, and install dependencies listed in requirements.txt:

# Create and activate virtual environment
python3 -m venv .venv
source .venv/bin/activate

# Install python packages
pip install -r photo-toolkit/requirements.txt

# (Optional) Install HEIC support
pip install pillow-heif

3. Verify the Installation

# Verify core dependencies
python3 -c "import rawpy; from PIL import Image; import numpy; print('✓ Core dependencies installed')"

# Verify HEIC/HEIF support
python3 -c "from pillow_heif import register_heif_opener; print('✓ HEIC/HEIF support available')" 2>/dev/null || echo "HEIC/HEIF support not installed"

4. Configuration

Copy config.example.toml to config.toml in your workspace directory to define the default input/output pathways.

Photo Toolkit Data Schema & Taxonomy

The Photo Toolkit structures output directories, configuration, and logs for seamless pipelines. It works with standard JSON formats for piped metadata.

File Output Structures

Directory / File Description
{input_dir}/thumbnails/ Default location where generated JPEG thumbnails are written.
config.toml Key configuration settings defining input/output base paths and execution behavior.
grading_params.json Stores configuration and absolute paths for before/after comparison layout generation.
/tmp/convert_report.json JSON format processing report output if requested via --report.

Input Metadata Structure (JSON Pipe)

When passing file listings through standard input between scripts (e.g., piping find_by_date.py to convert.py), the data uses a standard JSON array structure containing target file paths:

[
  "/path/to/photo1.nef",
  "/path/to/photo2.arw",
  "/path/to/photo3.heic"
]

Photo Toolkit Advanced Features

  • Piped CLI Workflows: Supports raw terminal piping using the --from-stdin flag, allowing deep integration between file discovery filters and batch-conversion operations.
  • Timelapse Sequence Detection: Features an algorithm to analyze shooting intervals (with adjustable tolerance) to isolate lapse capture sequences from casual single shots.
  • Automated AI Agent Support: Seamlessly coordinates with AI agent frameworks inside Openclaw Skills by providing clean standard input and output streams.
  • EXIF Metadata Preservation: Offers toggles to either strip metadata for privacy or copy full EXIF camera structures across to output thumbnails.
  • Multi-Core Parallelism: Built-in multi-threading adjusts to available CPU cores for lightning-fast image processing.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*