Read, analyze metadata, convert formats, resize, rotate, crop, compress, and batch process PNG, JPG, GIF, WebP, TIFF, BMP, HEIC, SVG, and ICO images.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install image-handler或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install image-handler⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/image-handler/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: image-handler description: Read, analyze, convert, and manipulate image files (PNG, JPG, GIF, WebP, TIFF, BMP, HEIC, SVG, ICO). Use when working with images: reading metadata, converting formats, resizing, rotating, compressing, or batch processing. Triggers on mentions of image files, file paths with image extensions, or requests to process/convert images. ---
Analyze, convert, and manipulate image files.
| Format | Extensions | Read | Convert | Metadata | |--------|------------|------|---------|----------| | PNG | .png | ✅ | ✅ | ✅ | | JPEG | .jpg, .jpeg | ✅ | ✅ | ✅ | | GIF | .gif | ✅ | ✅ | ✅ | | WebP | .webp | ✅ | ✅ | ✅ | | TIFF | .tiff, .tif | ✅ | ✅ | ✅ | | BMP | .bmp | ✅ | ✅ | ✅ | | HEIC | .heic, .heif | ✅ | ✅ | ✅ | | SVG | .svg | ✅ | ✅ | - | | ICO | .ico | ✅ | ✅ | ✅ |
# Get all properties
sips -g all image.jpg
# Get specific properties
sips -g pixelWidth -g pixelHeight -g format -g dpiWidth -g dpiHeight image.jpg
# JSON-like output (parseable)
sips -g all image.jpg 2>&1 | tail +2
# Convert to PNG
sips -s format png input.jpg --out output.png
# Convert to JPEG with quality
sips -s format jpeg -s formatOptions 85 input.png --out output.jpg
# Convert HEIC to JPEG
sips -s format jpeg input.heic --out output.jpg
# Batch convert (shell)
for f in *.heic; do sips -s format jpeg "$f" --out "${f%.heic}.jpg"; done
# Resize to max dimensions (maintains aspect ratio)
sips --resampleWidth 1920 image.jpg --out resized.jpg
sips --resampleHeight 1080 image.jpg --out resized.jpg
# Resize to exact dimensions
sips --resampleWidth 1920 --resampleHeight 1080 image.jpg --out resized.jpg
# Scale by percentage
sips --resampleWidth 50% image.jpg --out half.jpg
# Rotate 90 degrees clockwise
sips --rotate 90 image.jpg --out rotated.jpg
# Rotate 180 degrees
sips --rotate 180 image.jpg --out rotated.jpg
# Flip horizontal
sips --flip horizontal image.jpg --out flipped.jpg
# Flip vertical
sips --flip vertical image.jpg --out flipped.jpg
# Crop to specific pixels (x, y, width, height)
sips --cropToHeightWidth 500 500 image.jpg --out cropped.jpg
# Crop from center
sips --cropToHeightWidth 500 500 --cropOffset 100 100 image.jpg --out cropped.jpg
# Remove EXIF and all metadata
sips --deleteProperty all image.jpg --out clean.jpg
# WebP to PNG
ffmpeg -i input.webp output.png
# Extract frames from GIF
ffmpeg -i animation.gif frame_%03d.png
# Create GIF from images
ffmpeg -framerate 10 -i frame_%03d.png output.gif
# Resize with ffmpeg
ffmpeg -i input.jpg -vf scale=1920:-1 output.jpg
# Convert video to GIF
ffmpeg -i video.mp4 -vf "fps=10,scale=480:-1" output.gif
Get comprehensive image metadata.
~/Dropbox/jarvis/skills/image-handler/scripts/image_info.sh <image>
Convert between formats with options.
~/Dropbox/jarvis/skills/image-handler/scripts/convert_image.sh <input> <output> [quality]
Convert all images in a directory.
~/Dropbox/jarvis/skills/image-handler/scripts/batch_convert.sh <input_dir> <output_format> [output_dir]
sips -g all for dimensions, format, metadatasips is built into macOS — no installation neededffmpeg handles WebP, animated GIFs, and video-to-imagecat or text tools安装 Image Handler 后,可以对 AI 说这些话来触发它
Help me get started with Image Handler
Explains what Image Handler does, walks through the setup, and runs a quick demo based on your current project
Use Image Handler to read, analyze metadata, convert formats, resize, rotate, crop, comp...
Invokes Image Handler with the right parameters and returns the result directly in the conversation
What can I do with Image Handler in my marketing & growth workflow?
Lists the top use cases for Image Handler, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/image-handler/ 目录(个人级,所有项目可用),或 .claude/skills/image-handler/(项目级)。重启 AI 客户端后,用 /image-handler 主动调用,或让 AI 根据上下文自动发现并使用。
Image Handler 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Image Handler 可免费安装使用。请查阅仓库了解许可证信息。
Read, analyze metadata, convert formats, resize, rotate, crop, compress, and batch process PNG, JPG, GIF, WebP, TIFF, BMP, HEIC, SVG, and ICO images.
Image Handler 属于「Marketing & Growth」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my marketing & growth tasks using Image Handler
Identifies repetitive steps in your workflow and sets up Image Handler to handle them automatically