image-utils
Classic image manipulation with Python Pillow - resize, crop, composite, format conversion, watermarks, brightness/contrast adjustments, and web optimization.
Skill by Bria AI
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/bria-ai-image-utils-bfc848
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
image-utils- Description
- 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.
- License
- MIT
- Metadata
- author: Bria AI · version: 1.4.0
- Instructions
- 319 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
- Instructions call the network
Files (2)
- SKILL.md
- image_utils.py · references/code-examples/
SKILL.md (first lines)
# 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:
```bash
npx skills add bria-ai/bria-skill
```
## 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
```bash
pip install Pillow requests
```
## Basic Usage
```python
from image_utils import ImageUtils
# Load from URL
image = ImageUtils.load_from_url("https://example.com/image.jpg")
# Or load from various sources
image = ImageUtils.load("/path/to/image.png") # File path
image = ImageUtils.load(image_bytes) # Bytes
image = ImageUtils.load("data:image/png;base64,...") # Base64
# Resize and save
resized = ImageUtils.resize(image, width=800, height=600)
ImageUtils.save(resized, "output.webp", quality=90)
# Get image info
info = ImageUtils.get_info(image)
print(f"{info['width']}x{info['height']} {info['mode']}")
```
## Resizing & Scaling
```python
# Resize to exact dimensions
resized = ImageUtils.resize(image, width=800, height=600)
# Resize maintaining aspect ratio (fit within bounds)
fitted = ImageUtils.resize(image, width=800, height=600, maintain_aspect=True)
# Resize by width only (height auto-calculated)
resized = ImageUtils.resize(image, width=800)
# Scale by factor
half = ImageUtils.scale(image, 0.5) # 50% size
double = ImageUtils.scale(image, 2.0) # 200% size
# Create thumbnail
thumb = ImageUtils.thumbnail(image, (150, 150))
```
## Cropping
```python
# Crop to specific region
cropped = ImageUtils.crop(image, left=100, top=50, right=500, bottom=350)
# Crop from center
center = ImageUtils.crop_center(image, width=400, height=400)From Bria-AI/bria-skill, MIT.
More from Bria-AI/bria-skill
- 0.674score
bria-ai
Bria AI
Image generation, photo editing, background removal — transparent PNG images, cutouts, ecommerce packshots, product catalogs, lifestyle shots via Bria.ai.
SkillAFreshness: A★ 72Claude Code +9 - 0.674score
automotive
Bria AI
Vehicle/automotive image editing for cars, trucks, SUVs, motorcycles — car scenes, reflections, tires refinement with snow/mud/grass, segment…
SkillAFreshness: A★ 72Claude Code +9 - 0.674score
bria-ai
Bria AI
Bria.ai image API — generate from text prompts, edit with natural language, remove backgrounds for transparent PNGs, and create product lifestyle shots.
SkillAFreshness: A★ 72Claude Code +9 - 0.674score
image-utils
Bria AI
Classic image manipulation with Python Pillow - resize, crop, composite, format conversion, watermarks, brightness/contrast adjustments, and web optimization.
SkillAFreshness: A★ 72Claude Code +9 - 0.674score
remove-background
Bria AI
Remove backgrounds from images — background removal API for transparent PNGs, cutouts, and masks.
SkillAFreshness: A★ 72Claude Code +9 - 0.674score
vgl
Bria AI
Maximum control over AI image generation — write structured VGL (Visual Generation Language) JSON that explicitly controls every visual attribute.
SkillAFreshness: A★ 72Claude Code +9 - 0.674score
video-remove-background
Bria AI
Remove backgrounds from videos — video background removal API for transparent videos, alpha-channel clips, and green-screen-free footage.
SkillAFreshness: A★ 72Claude Code +9 - 0.674score
ad-delayer
Bria AI
Turn a finished, flat ad image back into editable layers — background, product shot, logo, headline, body copy and CTA, each returned as its own asset with…
SkillAFreshness: A★ 72Claude Code +9 - 0.674score
ad-resize
Bria AI
Resize a finished, flat ad image into other sizes with the layout redone for each shape, not cropped or stretched — feed, story, landscape, banner…
SkillAFreshness: A★ 72Claude Code +9 - 0.664score
ecommerce
Bria AI
End-to-end e-commerce product catalog generation — turn a folder of raw product photos into clean packshots, product cutouts, Amazon-style dimensions images…
SkillAFreshness: A★ 72Claude Code +9
Signals
- Stars
- 72
- Forks
- 7
- Open issues
- 0
- Last commit (this folder)
- Sep 30, 2026 (29 days ago)
- Last release
- Oct 21, 2026 (8 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.4.0
- License
- MIT
- Repository
- github.com/Bria-AI/bria-skill
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from Bria AI
- 0.674score
bria-ai
Bria AI
Image generation, photo editing, background removal — transparent PNG images, cutouts, ecommerce packshots, product catalogs, lifestyle shots via Bria.ai.
SkillAFreshness: A★ 72Claude Code +9 - 0.674score
automotive
Bria AI
Vehicle/automotive image editing for cars, trucks, SUVs, motorcycles — car scenes, reflections, tires refinement with snow/mud/grass, segment…
SkillAFreshness: A★ 72Claude Code +9 - 0.674score
bria-ai
Bria AI
Bria.ai image API — generate from text prompts, edit with natural language, remove backgrounds for transparent PNGs, and create product lifestyle shots.
SkillAFreshness: A★ 72Claude Code +9 - 0.674score
image-utils
Bria AI
Classic image manipulation with Python Pillow - resize, crop, composite, format conversion, watermarks, brightness/contrast adjustments, and web optimization.
SkillAFreshness: A★ 72Claude Code +9 - 0.674score
remove-background
Bria AI
Remove backgrounds from images — background removal API for transparent PNGs, cutouts, and masks.
SkillAFreshness: A★ 72Claude Code +9 - 0.674score
vgl
Bria AI
Maximum control over AI image generation — write structured VGL (Visual Generation Language) JSON that explicitly controls every visual attribute.
SkillAFreshness: A★ 72Claude Code +9
Cite this page
image-utils skill. Agent Mart. https://agentmart.dev/skills/bria-ai-image-utils-bfc848 (last updated 2026-10-24)