skills/image-extend/SKILL.md
Extends an image canvas by adding padding on all sides with a solid background color. Use when you need to add borders, margins, or expand the canvas area around an image.
npx skillsauth add agntswrm/agent-media image-extendInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Extends an image canvas by adding padding on all sides with a solid background color.
npx agent-media@latest image extend --in <path> --padding <pixels> --color <hex> [options]
| Option | Required | Description |
|--------|----------|-------------|
| --in | Yes | Input file path or URL |
| --padding | Yes | Padding size in pixels to add on all sides |
| --color | Yes | Background color for extended area (hex, e.g., "#FFFFFF"). Also flattens transparency. |
| --dpi | No | DPI/density for output image (default: 300) |
| --out | No | Output path, filename or directory (default: ./) |
Returns a JSON object with the extended image path:
{
"ok": true,
"media_type": "image",
"action": "extend",
"provider": "local",
"output_path": "extended_123_abc.png",
"mime": "image/png",
"bytes": 234567
}
Add white padding around an image:
npx agent-media@latest image extend --in photo.jpg --padding 50 --color "#FFFFFF"
Add colored border:
npx agent-media@latest image extend --in artwork.png --padding 100 --color "#E4ECF8"
Extend with custom DPI:
npx agent-media@latest image extend --in print-ready.jpg --padding 75 --color "#000000" --dpi 600
This action uses local processing only:
data-ai
Generates video from text prompts or animates static images. Use when you need to create videos from descriptions, animate images, or produce video content using AI.
development
Upscales an image using AI super-resolution to increase resolution with detail generation. Use when you need to enlarge images, improve low-resolution photos, or prepare images for large-format display.
testing
Resizes an image to specified dimensions. Use when you need to change image size, create thumbnails, or prepare images for specific display requirements.
content-media
Removes the background from an image, leaving the foreground subject with transparency. Use when you need to isolate subjects, create cutouts, or prepare images for compositing.