# Extend Images Beyond the Frame

Cropped images often need a wider canvas for banners, social posts, or product layouts. This skill guides Claude, Codex, and Claude Code to outpaint images with RunComfy models while preserving the original subject.

## Install

```bash
npx skillstore add agentspace-so/image-outpainting
```

## Metadata

- Status: approved
- Slug: agentspace-so-image-outpainting
- Skillstore revision: r1
- Version status: missing
- Tree hash: 086c3272b40073a8898f00a6991d091a3ecf7a520c5b6037633f1724bdfdcd34
- Author: agentspace-so
- GitHub username: agentspace-so
- License: MIT
- Repository: https://github.com/agentspace-so/runcomfy-agent-skills/tree/main/image-outpainting/
- Ref: 7db9b9f06e0ab79c575b58bc48c4d8dc9849f424
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: allowed
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: external\_commands, network, filesystem
- Quality score: 79
- Quality tier: bronze
- Public page: https://skillstore.pages.dev/skills/agentspace-so-image-outpainting
- Manifest: https://skillstore.pages.dev/api/skills/agentspace-so-image-outpainting/manifest

## Capabilities

- Routes simple outpainting requests to Nano Banana 2 Edit by default.
- Expands square, portrait, or landscape images to new aspect ratios.
- Suggests GPT Image 2 Edit when reference images are needed for style matching.
- Suggests FLUX Kontext Pro for high-preservation single-instruction edits.
- Provides RunComfy CLI commands with JSON input examples.
- Explains when to move from CLI endpoints to ComfyUI workflows for seam control.

## Use Cases

- Create social media crops: Turn a square image into a vertical or widescreen format while keeping the subject intact.
- Prepare commerce product images: Extend product shots with matching counters, shadows, and backgrounds for catalog layouts.
- Restore cropped visual assets: Uncrop portraits or historical images with surrounding context that matches the source.

## Prompt Templates

### Basic aspect-ratio extension

```
Outpaint this image to 16:9. Extend the left and right sides with matching background, lighting, and color. Keep the original subject unchanged.
```

### Portrait uncrop

```
Uncrop this portrait downward and slightly to both sides. Continue the clothing, posture, shadows, and background naturally. Preserve the face and visible original pixels.
```

### Reference-style outpaint

```
Outpaint the source image to a wide hero banner. Match the surrounding style, palette, and texture from the reference image. Keep the original central object unchanged.
```

### Multi-step quality workflow

```
Plan a two-pass outpainting workflow. Extend the canvas by about 40 percent per pass, inspect for seams after each pass, and recommend the best RunComfy route.
```

## Limitations

- Requires the RunComfy CLI and an authenticated RunComfy account.
- Does not perform mask-driven edits inside the existing image area.
- Does not support video outpainting workflows.
- May need ComfyUI workflows when texture seams or lighting mismatches are visible.

## Best Practices

- State the target aspect ratio at the start of the prompt.
- Describe the environment, lighting, camera distance, and color palette to continue.
- Tell the model to preserve the original visible area exactly.

## Anti Patterns

- Do not ask for a large one-step extension when boundary quality matters.
- Do not omit the target aspect ratio and expect the model to infer it reliably.
- Do not use this skill for internal mask edits or video canvas expansion.

## Security Audit

- Audited at: 2026-07-09T01:04:46.639\+00:00
- Summary: The static findings are false positives caused by markdown code fences, inline model identifiers, documentation links, and transparent CLI usage examples. No prompt injection, hidden command execution, arbitrary filesystem access, or suspicious network behavior was found in SKILL.md.

## Stats

- Views: 48
- Downloads: 8
- Favorites: 0
- Popularity score: 0
