
Image Outpainting
Uncrop stills, change aspect ratio, and expand canvas while keeping the original subject intact via RunComfy edit routes.
Install
npx skills add https://github.com/agentspace-so/runcomfy-agent-skills --skill image-outpaintingWhat is this skill?
- Picks route by prose-driven, reference-driven, or brand-locked extension
- Square to 16:9 and portrait to landscape without redoing the core frame
- Default Nano Banana 2 Edit plus FLUX and brand edit fallbacks
Adoption & trust: 150k installs on skills.sh; 15 GitHub stars; 2/3 security scanners passed (skills.sh audits).
Recommended Skills
Video Editagentspace-so/runcomfy-agent-skills
Image To Videoagentspace-so/runcomfy-agent-skills
Image Editagentspace-so/runcomfy-agent-skills
Flux Kontextagentspace-so/runcomfy-agent-skills
Nano Banana 2agentspace-so/runcomfy-agent-skills
Nano Banana Editagentspace-so/runcomfy-agent-skills
Journey fit
Primary fit
Used while assembling creative and brand assets through agent-driven CLI calls during product and content production. Multi-route outpainting skill (Nano Banana 2, GPT Image 2, FLUX Kontext, brand edits) exposed as a Bash(runcomfy *) agent tool.
Common Questions / FAQ
Is Image Outpainting safe to install?
skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.
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