image-processor

Process and convert images with resize, crop, compress, and format conversion. Use when user needs to batch resize photos, convert image formats, compress images for web, create thumbnails, or apply filters to images.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "image-processor" with this command: npx skills add dinghaibin/dinghaibin-image-processor

Image Processor

Process and convert images with resize, crop, compress, and format conversion.

Quick Start

# Resize an image
python scripts/process.py input.jpg --resize 800x600 --output output.jpg

# Convert format
python scripts/process.py input.png --format jpg --output output.jpg

Usage

python scripts/process.py INPUT [OPTIONS]

Options:
  --output PATH      Output file path
  --resize WxH       Resize to dimensions
  --scale PERCENT    Scale by percentage
  --crop WxH+X+Y     Crop to dimensions
  --format FORMAT    Convert format: jpg, png, webp, gif
  --quality QUALITY  JPEG quality (1-100)
  --thumbnail SIZE  Create thumbnail
  --grayscale        Convert to grayscale
  --blur RADIUS      Apply blur
  --rotate DEGREES   Rotate image

Examples

# Resize to 800px width
python scripts/process.py photo.jpg --resize 800x0 --output small.jpg

# Create thumbnail
python scripts/process.py photo.jpg --thumbnail 200x200 --output thumb.jpg

# Compress for web
python scripts/process.py large.jpg --quality 80 --format webp --output optimized.webp

# Batch resize
for f in *.jpg; do python scripts/process.py "$f" --resize 1200x0 --output "small_$f"; done

# Convert to PNG
python scripts/process.py input.jpg --format png --output output.png

Features

  • Resize (by dimensions or percentage)
  • Crop
  • Format conversion (JPG, PNG, WebP, GIF)
  • Quality/compression control
  • Thumbnails
  • Grayscale conversion
  • Blur filter
  • Rotation
  • Batch processing

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

web-pptx-generator

专业单页面HTML PPT生成器。Use when user needs to create beautiful HTML presentations. Supports multiple themes, mobile-friendly, export to PDF. 单页PPT、HTML演示文稿、PPT生成。

Registry SourceRecently Updated
General

china-summarizer

中文内容智能总结工具。Summarize local files (TXT/MD/PDF/Word), web pages, news articles, or WeChat articles. No login, no API key required. 内容总结、文章提炼。

Registry SourceRecently Updated
General

Meiguang Car Insurance

车险保单PDF字段提取工具 v5.0.2(美光/大地/太平洋/浙商/亚太/人保/华海)。输入PDF文件夹,输出Excel。支持14字段,含车辆使用性质多数纠正、PDAA/PDZA表格兜底、Excel中文UTF-8编码修复。

Registry SourceRecently Updated
General

cache-strategy-advisor

Design and optimize caching strategies for applications. Analyze data access patterns, recommend cache layers (browser, CDN, application, database), configur...

Registry SourceRecently Updated