gopendrasharma89-tech/openclaw-workspace/image-utils
Claude Code and agent skill by gopendrasharma89-tech/openclaw-workspace
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install gopendrasharma89-tech/openclaw-workspace/image-utilsSKILL.md
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
When NOT to Use This Skill — Use bria-ai Instead
This skill handles deterministic pixel-level operations only. For any generative or AI-powered image work, use the bria-ai skill instead:
- Generating images from text prompts → use
bria-ai - AI background removal or replacement → use
bria-ai - AI image editing (inpainting, object removal/addition) → use
bria-ai - Style transfer or AI-driven visual effects → use
bria-ai - Creating product lifestyle shots with AI → use
bria-ai - Image upscaling with AI super-resolution → use
bria-ai
Rule of thumb: If the task requires creating new visual content or understanding image semantics, use bria-ai. If the task requires transforming existing pixels (resize, crop, format convert, watermark), use this skill.
If bria-ai is not available, install it with:
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 | |
add_image_watermark(image, logo) | Add logo watermark | ||
| Adjustments | adjust_brightness(image, factor) | Lighten/darken | |
adjust_contrast(image, factor) | Adjust contrast | ||
adjust_saturation(image, factor) | Adjust color saturation | ||
blur(image, radius) | Apply Gaussian blur | ||
| Web | optimize_for_web(image, max_size) | Optimize for delivery | |
| Info | get_info(image) | Get dimensions, format, mode |
Requirements
Basic Usage
Resizing & Scaling
Cropping
Compositing
Format Conversion
Watermarks
Adjustments
Transforms
Borders & Padding
Web Optimization
Integration with Bria AI
Use alongside the [bria-ai skill](https://clawhub.ai/galbria/bria-ai) to post-process AI-generated images. Generate or edit images with Bria's API, then use image-utils for resizing, cropping, watermarking, and web optimization.
Batch Processing Example
API Reference
See image_utils.py for complete implementation with docstrings.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/image-utils/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/gopendrasharma89-tech/openclaw-workspace/image-utils)