Task Router Skill
Task Router
Classic image manipulation with Python Pillow - resize, crop, composite, format conversion, watermarks, brightness/contrast adjustments, and web optimization. Use this skill when post-processing AI-generated images, preparing images for web delivery, batch processing image directories, creating responsive image variants, or performing any deterministic pixel-level image operation. Works standalone or alongside bria-ai for post-processing generated images.
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
SkillHub CLI
skillhub install galbria/image-utils打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。
将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。
Pillow-based utilities for deterministic pixel-level image operations. Use for resize, crop, composite, format conversion, watermarks, and other standard image processing tasks.
| Operation | Method | Description |
|---|---|---|
| Loading | load(source) |
Load from URL, path, bytes, or base64 |
load_from_url(url) |
Download image from URL | |
| Saving | save(image, path) |
Save with format auto-detection |
to_bytes(image, format) |
Convert to bytes | |
to_base64(image, format) |
Convert to base64 string | |
| Resizing | resize(image, width, height) |
Resize to exact dimensions |
scale(image, factor) |
Scale by factor (0.5 = half) | |
thumbnail(image, size) |
Fit within size, maintain aspect | |
| Cropping | crop(image, left, top, right, bottom) |
Crop to region |
crop_center(image, width, height) |
Crop from center | |
crop_to_aspect(image, ratio) |
Crop to aspect ratio | |
| Compositing | paste(bg, fg, position) |
Overlay at coordinates |
composite(bg, fg, mask) |
Alpha composite | |
fit_to_canvas(image, w, h) |
Fit onto canvas size | |
| Borders | add_border(image, width, color) |
Add solid border |
add_padding(image, padding) |
Add whitespace padding | |
| Transforms | rotate(image, angle) |
Rotate by degrees |
flip_horizontal(image) |
Mirror horizontally | |
flip_vertical(image) |
Flip vertically | |
| Watermarks | add_text_watermark(image, text) |
Add text overlay... |
这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。
# Image Utilities Pillow-based utilities for deterministic pixel-level image operations. Use for resize, crop, composite, format conversion, watermarks, and other standard image processing tasks. ## When to Use This Skill - **Post-processing AI-generated images**: Resize, crop, optimize for web after generation - **Format conversion**: PNG ↔ JPEG ↔ WEBP with quality control - **Compositing**: Overlay images, paste subjects onto backgrounds - **Batch processing**: Resize to multiple sizes, add watermarks - **Web optimization**: Compress and resize for fast delivery - **Social media preparation**: Crop to platform-specific aspect ratios ## Quick Reference | Operation | Method | Description | |-----------|--------|-------------| | **Loading** | `load(source)` | Load from URL, path, bytes, or base64 | | | `load_from_url(url)` | Download image from URL | | **Saving** | `save(image, path)` | Save with format auto-detection | | | `to_bytes(image, format)` | Convert to bytes | | | `to_base64(image, format)` | Convert to base64 string | | **Resizing** | `resize(image, width, height)` | Resize to exact dimensions | | | `scale(image, factor)` | Scale by factor (0.5 = half) | | | `thumbnail(image, size)` | Fit within size, maintain aspect | | **Cropping** | `crop(image, left, top, right, bottom)` | Crop to region | | | `crop_center(image, width, height)` | Crop from center | | | `crop_to_aspect(image, ratio)` | Crop to aspect ratio | | **Compositing** | `paste(bg, fg, position)` | Overlay at coordinates | | | `composite(bg, fg, mask)` | Alpha composite | | | `fit_to_canvas(image, w, h)` | Fit onto canvas size | | **Borders** | `add_border(image, width, color)` | Add solid border | | | `add_padding(image, padding)` | Add whitespace padding | | **Transforms** | `rotate(image, angle)` | Rotate by degrees | | | `flip_horizontal(image)` | Mirror horizontally | | | `flip_vertical(image)` | Flip vertically | | **Watermarks** | `add_text_watermark(image, text)` | Add text overlay...
Task Router
Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay,...
Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.
OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.