image-extend

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.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "image-extend" with this command: npx skills add agntswrm/agent-media/agntswrm-agent-media-image-extend

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

OptionRequiredDescription
--inYesInput file path or URL
--paddingYesPadding size in pixels to add on all sides
--colorYesBackground color for extended area (hex, e.g., "#FFFFFF"). Also flattens transparency.
--dpiNoDPI/density for output image (default: 300)
--outNoOutput path, filename or directory (default: ./)

Output

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
}

Examples

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

Providers

This action uses local processing only:

  • local - No API key required (uses Sharp)

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

image-remove-background

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

audio-transcribe

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

video-generate

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

image-crop

No summary provided by upstream source.

Repository SourceNeeds Review