Image
Core functionality module for generating and processing image content
clawhub install imagePerform various image operations including format conversion, cropping, and resizing with ImageMagick
# Install Skill (downloads SKILL.md to .claude/skills/) clawhub install imagemagick # Then just tell Claude: "use ImageMagick Operations to help me..."
# Same install command — works with all SKILL.md-compatible AI coding tools clawhub install imagemagick
This Skill is compatible with the OpenClaw standard. After installation, a SKILL.md file is auto-generated, usable by any OpenClaw-compatible AI Agent (Claude Code, Cursor, Windsurf, etc.).
brew install imagemagick
sudo apt install imagemagick # Debian/Ubuntu
sudo dnf install ImageMagick # Fedora
convert --version
./scripts/remove-bg.sh input.png output.png [tolerance] [color]
./scripts/remove-bg.sh icon.png icon-clean.png # default white
./scripts/remove-bg.sh icon.png icon-clean.png 30 # loose tolerance
./scripts/remove-bg.sh icon.png icon-clean.png 10 "#000000" # remove black
convert input.png -resize 256x256 output.png
convert input.png output.webp # PNG → WebP
convert input.jpg output.png # JPG → PNG
convert input.png -quality 80 output.jpg # Compress
convert input.png -alpha set -virtual pixel transparent \
-distort viewport 512x512+0+0 \
-channel A -blur 0x10 -threshold 50% \
output-rounded.png
convert base.png watermark.png -gravity southeast -composite output.png
for f in *.png; do convert "$f" -resize 128x128 "thumbs/$f"; done
convert input.png -brightness-contrast 10x0 output.png # brighter
convert input.png -grayscale output.png # grayscale
convert input.png -modulate 100,150,100 output.png # more saturation
./scripts/remove-bg.sh icon.png icon-clean.png 15
for size in 1024 512 256 128 64 32 16; do
convert icon.png -resize ${size}x${size} icon-${size}.png
done
convert large.png -quality 85 -resize 2000x2000\> optimized.webp
-quality for JPEG/WebP compression (0-100)-strip to remove metadata for smaller filesclawhub imagemagick convert input.png -resize 1024x768 -quality 90 -strip output.jpgUpload images to img402.dev and get a public URL. Free tier: 1MB max, 7-day retention, no auth. Use when the agent needs a hosted image URL — for sharing in messages, embedding in documents, posting to social platforms, or any context that requires a public link to an image file.
clawhub install image-hostingReal cold-start runs of this skill on Claude Code and Codex.
Input: Create a 1200×630 OG card PNG: diagonal indigo→violet gradient, bold white "skills.video" title (centered), light-grey subtitle, a thin accent rule, and a subtle vignette.
Clean, minimal, balanced; subtle radial vignette. Hit an empty ImageMagick font registry → referenced the font file by absolute path (Arial Bold). Rebuilt the vignette once (oversized gradient + center-crop + transparent radial overlay) to avoid grey corners.

claude-opus-4-8
Slightly richer — added a soft radial glow orb (upper-left) for depth + a larger title. Same empty-font-registry issue, resolved via fc-match. Faster here (45s) — Codex is efficient on simple single-output tasks.

codex-cli 0.140
Output: og-card.png — 1200×630 PNG (both valid). Claude minimal/clean; Codex adds a decorative glow.
Verdict: Both produced valid, polished 1200×630 OG cards — aesthetics a toss-up (Claude cleaner/minimal, Codex richer with a glow orb). Notably, on this SIMPLE single-output task Codex was faster (45s vs 87s); the usual efficiency gap only shows on complex multi-step work.
Environment: macOS · ImageMagick 7.1.2 (magick) · symmetric cold start (codex exec vs a fresh Claude Code subagent).