image-tools
Image Tools Skill
Image analysis and manipulation tools.
When to Use
- Extract image metadata (EXIF, dimensions, format)
- Convert between image formats
- Resize or crop images
- Analyze image content
- Get image information
Image Information
Get Image Details
# Using file command
file image.jpg
# Using identify (ImageMagick)
identify -verbose image.jpg
# Get dimensions
identify -format "%wx%h" image.jpg
# Get EXIF data
identify -format "%[EXIF:*]" image.jpg
Quick Info Script
#!/bin/bash
# Get basic image info
FILE="$1"
if [ -z "$FILE" ]; then
echo "Usage: $0 <image-file>"
exit 1
fi
echo "=== Image Info ==="
file "$FILE"
echo ""
echo "Dimensions:"
identify -format "%wx%h\n" "$FILE"
echo ""
echo "Format:"
identify -format "%m\n" "$FILE"
Image Conversion
Convert Formats
# PNG to JPEG
convert input.png output.jpg
# JPEG to PNG
convert input.jpg output.png
# Convert to grayscale
convert input.jpg -colorspace Gray output.jpg
# Resize
convert input.jpg -resize 800x600 output.jpg
convert input.jpg -resize 50% output.jpg
WebP Conversion
# JPEG to WebP
cwebp input.jpg -o output.webp
# PNG to WebP
cwebp -lossless input.png -o output.webp
Image Analysis
Count Colors
# Unique colors in image
identify -format "%k" input.jpg
Image Histogram
# Get color histogram
convert input.jpg -format %c histogram:info:-
# Simple histogram
identify -verbose input.jpg | grep -A 100 "Histogram:"
OCR (Text Extraction)
# Extract text from image
tesseract image.jpg stdout
# Specific language
tesseract image.jpg stdout -l eng
Screenshots
Capture Screen
# Full screen (Linux)
import -window root screenshot.png
# Region selection
import screenshot.png
# Using scrot (if installed)
scrot -s selection.png
Capture URL as Image
# Using wkhtmltoimage
wkhtmltoimage https://example.com page.png
# Using chromium headless
chromium --headless --screenshot=output.png https://example.com
Useful Tools
| Tool | Purpose |
|---|---|
file |
Detect file type |
identify |
Get image metadata |
convert |
Format conversion, resize |
composite |
Blend images |
montage |
Create image grids |
tesseract |
OCR text extraction |
Examples
Check if image is valid:
file image.jpg && identify image.jpg >/dev/null 2>&1 && echo "Valid image"
Batch resize:
for f in *.jpg; do convert "$f" -resize 800x600 "thumb_$f"; done
Extract thumbnail:
convert input.jpg -thumbnail 200x200^ -gravity center -extent 200x200 thumb.jpg
More from winsorllc/upgraded-carnival
vector-memory
Vector-based semantic memory using embeddings for intelligent recall. Store and search memories by meaning rather than keywords. Use when you need semantic search, similar document retrieval, or context-aware memory.
131model-router
Route requests between different LLM providers and models. Configure routing rules, fallback providers, and model-specific parameters inspired by ZeroClaw and OpenClaw model routing systems.
63rss-monitor
Monitor RSS/Atom feeds and blogs for new content using feedparser.
59rss-reader
Read and parse RSS/Atom feeds. Use when: user wants to subscribe to feeds, get latest articles, or monitor news sources.
54video-frames
Production-grade video frame extraction with thumbnail grids, GIF creation, and batch frame processing. Includes intelligent quality presets, progress tracking, and comprehensive error handling.
39elevenlabs-tts
Convert text to speech using ElevenLabs API. Use when you need to generate voice audio for messages, narrations, or accessibility.
25