Outpainting Guide: Extend Images and Change Aspect Ratios
How to outpaint with local AI: extending canvases in ComfyUI and Forge, padding and feathering, prompts for continuity and multi-step panoramas.
Outpainting extends an image beyond its edges. It turns portrait shots into banners, crops into wide scenes and single frames into panoramas.
The basic method
- Pad the canvas in the direction you want to extend. ComfyUI has a “pad image for outpainting” node; Forge-style UIs have outpainting scripts or canvas extensions.
- Mask the new area, overlapping slightly into the original.
- Feather the mask for smooth transitions.
- Prompt with the original style and lighting, adding what should appear in the new area.
- Generate with masked content set to fill or noise, denoise near 1.0 for the new area.
Work in steps
Extending by 25-50% per step keeps perspective and lighting coherent. Huge extensions in one go tend to invent unrelated scenes.
Plan target sizes
Use the SDXL and FLUX resolution calculator to choose the final dimensions, then pad accordingly.
Continuity tips
- Mention the light direction and time of day.
- Describe the ground plane or horizon so it continues.
- If people or objects are cut at the edge, include them in the prompt so they are completed.
Panoramas
Extend repeatedly, then run a light img2img pass over the full image at low denoise to unify it. See img2img guide.
Related
Inpainting guide for editing inside the frame.
Common questions
How do I change a square image to 16:9 with AI?
Pad the left and right edges to the target ratio, mask the padding with a small overlap, and inpaint the new area with the original style prompt.
Why are there visible seams?
The mask does not overlap the original enough or has hard edges. Overlap by a few dozen pixels and feather the mask.
Which models outpaint best?
Inpainting-specific checkpoints and FLUX fill-style models blend best, but most models work with careful settings.
Related reading
Inpainting Guide: Fix Hands, Faces and Objects Cleanly
GuideSpeed Up AI Image Generation: 10 Proven Techniques
GuideSeeds and Reproducibility: Recreating AI Images Exactly
Free toolImage Prompt Generator
Browse more: all guides · comparisons · glossary · free tools