image-tools
Skill: image-tools
When to Use
Use this skill when the user asks to:
- Resize an image (scale, set dimensions)
- Compress or optimize an image for web
- Convert between image formats (PNG, JPG, WebP, GIF, BMP, TIFF)
- Crop an image
- Get image info (dimensions, format, file size)
- Create a thumbnail
- Rotate or flip an image
Supported Formats
| Format | Read | Write | Notes |
|---|---|---|---|
| JPEG | Yes | Yes | Lossy, quality adjustable |
| PNG | Yes | Yes | Lossless, supports transparency |
| WebP | Yes | Yes | Modern web format |
| GIF | Yes | Yes | Animation supported |
| BMP | Yes | Yes | Uncompressed |
| TIFF | Yes | Yes | Professional/print |
Input Parameters
| Parameter | Required | Description | Example |
|---|---|---|---|
action |
Yes | resize, compress, convert, crop, info, rotate |
resize |
input |
Yes | Input image file path | photo.jpg |
output |
For most | Output file path | resized.jpg |
width |
For resize | Target width in pixels | 800 |
height |
For resize | Target height in pixels | 600 |
quality |
For compress | JPEG/WebP quality 1-100 (default: 80) | 75 |
format |
For convert | Target format | webp |
crop_box |
For crop | left,top,right,bottom in pixels | 0,0,500,400 |
angle |
For rotate | Rotation angle in degrees | 90 |
Procedure
-
Determine the action from the user's request
-
Run the bundled script:
# Resize python3 skills/image-tools/scripts/process.py resize input.jpg --width 800 --output resized.jpg # Compress python3 skills/image-tools/scripts/process.py compress photo.jpg --quality 75 --output compressed.jpg # Convert format python3 skills/image-tools/scripts/process.py convert image.png --format webp --output image.webp # Crop python3 skills/image-tools/scripts/process.py crop photo.jpg --box 0,0,500,400 --output cropped.jpg # Get info python3 skills/image-tools/scripts/process.py info photo.jpg # Rotate python3 skills/image-tools/scripts/process.py rotate photo.jpg --angle 90 --output rotated.jpg -
The script auto-installs
Pillowif needed -
Report the result to the user
Bundled Scripts
| Script | Type | Description |
|---|---|---|
scripts/process.py |
Python | Resize, compress, convert, crop, inspect, and rotate images |
Example
resize photo.jpg to 800px wide
compress this image to 75% quality
convert screenshot.png to webp
crop the image to 500x400
what are the dimensions of this image
make a thumbnail of photo.jpg
rotate the image 90 degrees
More from dalehurley/phpbot
desktop-control
Control the mouse, keyboard, and read screen content via accessibility. Use this skill when the user asks to click somewhere on screen, type text into an app, move the mouse, press keyboard shortcuts, read what's on screen, get the accessibility tree of the current window, automate desktop interactions, or control the computer.
39summarize-unread-emails
Retrieve and summarize all unread emails from your inbox, organized by category, sender, and date. Use this skill when the user asks to summarize unread emails, get an overview of unread messages, organize inbox emails, or review pending email communications. Provides a structured summary with categorization and timeline analysis.
20csv-tools
Parse, query, filter, sort, transform, and summarize CSV and JSON data files. Use this skill when the user asks to view a CSV, filter data, get statistics from a data file, convert CSV to JSON or vice versa, sort data, or analyze tabular data.
9self-correct-reasoning
Analyze and correct previous responses when questioned or when contradictions are detected. Use this skill when the user challenges your reasoning, points out inconsistencies, or asks 'what makes you think that?' to help you review your logic, identify errors in your previous statements, and provide accurate corrections. Useful for maintaining consistency, admitting mistakes, and rebuilding trust through transparent self-evaluation.
8qr-code
Generate QR codes as PNG images from text, URLs, or any data. Use this skill when the user asks to create a QR code, generate a QR code, make a scannable code, or encode data as a QR image.
7summarize-pdf-aloud
Find PDF documents on your computer, extract and summarize their content, and read the summary aloud using text-to-speech. Use this skill when the user asks to read a PDF summary out loud, speak a document summary, or have a PDF summarized verbally. Automatically searches common directories (Desktop, Downloads, current directory) and uses OCR/text extraction to process the PDF content.
6