image-extend
Installation
SKILL.md
Image Extend
Extends an image canvas by adding padding on all sides with a solid background color.
Command
npx agent-media@latest image extend --in <path> --padding <pixels> --color <hex> [options]
Inputs
| 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: ./) |