
Image Outpainting
Extend still images beyond their original frame on RunComfy—uncrop, change aspect ratio, and fill missing canvas—without hand-picking which edit model to call.
Overview
Image Outpainting is an agent skill most often used in Build (also Launch distribution, Grow content) that extends still images on RunComfy via the `runcomfy` CLI and routes to the right identity-preserving edit model fo
Install
npx skills add https://github.com/runcomfy-com/skills --skill image-outpaintingWhat is this skill?
- Routes outpaints across Nano Banana 2 Edit (default), GPT Image 2 Edit, FLUX Kontext Pro, and brand edit endpoints (Seed
- Chooses prose-driven, reference-style, or brand-locked continuation based on how you describe the extension
- Supports uncrop, aspect-ratio changes (e.g. square → 16:9, portrait → landscape), and filling area the camera did not ca
- Invoked via Bash `runcomfy *` per skill metadata
- MIT-licensed RunComfy workflow aligned with skills.sh distribution
- Routes across 4+ outpaint strategies: Nano Banana 2 Edit (default), GPT Image 2 Edit, FLUX Kontext Pro, and brand edit e
- Skill metadata allows Bash `runcomfy *` tooling
Adoption & trust: 113k installs on skills.sh; 1 GitHub stars; 2/3 security scanners passed (skills.sh audits).
What problem does it solve?
You have a finished still in the wrong aspect ratio or cropped too tight, and manually picking RunComfy edit models burns iterations before you get a believable extension.
Who is it for?
Solo builders repurposing one photo across banners, social sizes, and widescreen placements who already use RunComfy and want the agent to pick the edit route.
Skip if: Teams that need pixel-perfect inpainting inside the existing frame only (use mask-driven regional edit skills), or workflows with no RunComfy account or CLI installed.
When should I use this skill?
User asks to outpaint, extend image canvas, expand the image, uncrop, change aspect ratio, extend frame, wide-screen from square, or fill in around an existing still.
What do I get? / Deliverables
You get a routed RunComfy outpaint job that adds canvas around the original while preserving central content, producing an extended image file suited to your target placement.
- Extended still image from the routed RunComfy edit job
- Documented model route choice (prose-, reference-, or brand-driven)
Recommended Skills
Journey fit
Spans multiple journey phases - primary shelf plus alternate fits below.
Canonical shelf is Build → integrations because the skill’s core job is routing `runcomfy` CLI calls to the right RunComfy edit endpoint for a given outpaint intent. Outpainting is an external generative-media integration, not app frontend code—fits integrations alongside other agent-callable media APIs.
Where it fits
Stretch a landing-page mock still to widescreen before committing to a full photoshoot.
Route a prose-driven ‘continue the forest to the left’ outpaint through the default Nano Banana 2 Edit path via `runcomfy`.
Turn a square social crop into a 16:9 YouTube thumbnail without re-shooting.
Refresh blog and newsletter hero images to new aspect ratios from one master photo.
How it compares
Use this RunComfy router skill instead of chaining ad-hoc chat prompts to random image models when canvas extension and model choice must stay consistent.
Common Questions / FAQ
Who is image-outpainting for?
Indie builders and marketers using Claude Code or similar agents with the RunComfy CLI who need to extend photos and change aspect ratios without becoming RunComfy model experts.
When should I use image-outpainting?
During Build when creating product and marketing assets; at Launch when adapting hero art to distribution formats (e.g. widescreen from square); and in Grow when refreshing content crops—whenever triggers like outpaint, uncrop, extend canvas, or change aspect ratio apply.
Is image-outpainting safe to install?
Review the Security Audits panel on this Prism page for license and audit signals; the skill allows Bash `runcomfy *` and network calls to RunComfy, so treat API keys and spend limits like any paid media integration.
SKILL.md
READMESKILL.md - Image Outpainting
# Image Outpainting Extend a still beyond its original canvas — uncrop, change aspect ratio, fill in what the camera didn't capture. This skill routes across the identity-preserving edit endpoints in the RunComfy catalog, picking the right one for prose-driven extension, reference-style matching, or brand-locked continuation. [runcomfy.com](https://www.runcomfy.com/?utm_source=skills.sh&utm_medium=skill&utm_campaign=image-outpainting) · [best-image-editing-models](https://www.runcomfy.com/models/collections/best-image-editing-models?utm_source=skills.sh&utm_medium=skill&utm_campaign=image-outpainting) · [CLI docs](https://docs.runcomfy.com/cli/introduction?utm_source=skills.sh&utm_medium=skill&utm_campaign=image-outpainting) ## Powered by the RunComfy CLI ```bash # 1. Install (see runcomfy-cli skill for details) npm i -g @runcomfy/cli # or: npx -y @runcomfy/cli --version # 2. Sign in runcomfy login # or in CI: export RUNCOMFY_TOKEN=<token> # 3. Outpaint runcomfy run google/nano-banana-2/edit \ --input '{"prompt": "...extend canvas...", "image_urls": ["..."]}' \ --output-dir ./out ``` CLI deep dive: [`runcomfy-cli`](https://www.skills.sh/agentspace-so/runcomfy-agent-skills/runcomfy-cli) skill. --- ## Pick the right model Listed by suitability for outpainting workflows. **Nano Banana 2 Edit** — `google/nano-banana-2/edit` *(default for prompt-shaped outpaint)* > Identity-preserving edit; honors spatial language ("extend the canvas to the left and right by ~30%", "add sky above the building"). The result is a wider canvas with the original content preserved. > Pick for: aspect-ratio change (square → 16:9), uncrop a portrait, extend a landscape photo with matching environment. > Avoid for: pixel-precise extension matching texture seams — use a ComfyUI outpainting workflow. **GPT Image 2 Edit** — `openai/gpt-image-2/edit` > Up to 10 reference images, layout-precise instruction following. Useful when outpainting needs to match a reference style or includes layout repositioning. > Pick for: composite outpaint (extend canvas + paste in element from another image), layout repositioning during the canvas change. > Avoid for: simple outpaint without external references. **FLUX Kontext Pro** — `blackforestlabs/flux-1-kontext/pro/edit` > Single-instruction, high-preservation edit. Use form: `"Extend the canvas to a 16:9 aspect ratio. Add matching sky and architecture continuing from the existing scene. Keep everything in the original image exactly."` > Pick for: single-shot outpaint with maximum preservation of the original content. **Seedream / Dreamina / Qwen / FLUX 2 edit endpoints** > Brand-specific edit endpoints (`bytedance/seedream-5/lite/edit`, `bytedance/dreamina-4-0/edit`, `qwen/qwen-image/qwen-image-edit-2511`, `blackforestlabs/flux-2-pro/edit`, etc.). > Pick for: keeping the outpaint within the same brand/style as the source generation. See [`image-edit`](https://www.skills.sh/agentspace