π¦ ClawHub
Image Processor
by @dinghaibin
Process and convert images with resize, crop, compress, and format conversion. Use when user needs to batch resize photos, convert image formats, compress im...
TERMINAL
clawhub install dinghaibin-image-processorπ About This Skill
name: image-processor description: 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.
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.jpgConvert 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.jpgCreate thumbnail
python scripts/process.py photo.jpg --thumbnail 200x200 --output thumb.jpgCompress for web
python scripts/process.py large.jpg --quality 80 --format webp --output optimized.webpBatch resize
for f in *.jpg; do python scripts/process.py "$f" --resize 1200x0 --output "small_$f"; doneConvert to PNG
python scripts/process.py input.jpg --format png --output output.png
Features
π‘ Examples
# Resize to 800px width
python scripts/process.py photo.jpg --resize 800x0 --output small.jpgCreate thumbnail
python scripts/process.py photo.jpg --thumbnail 200x200 --output thumb.jpgCompress for web
python scripts/process.py large.jpg --quality 80 --format webp --output optimized.webpBatch resize
for f in *.jpg; do python scripts/process.py "$f" --resize 1200x0 --output "small_$f"; doneConvert to PNG
python scripts/process.py input.jpg --format png --output output.png