unrestricted.image
OutpaintingEditing

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.

By the Unrestricted Image Generator AI editorial team· Updated · 3 min read

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

  1. 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.
  2. Mask the new area, overlapping slightly into the original.
  3. Feather the mask for smooth transitions.
  4. Prompt with the original style and lighting, adding what should appear in the new area.
  5. 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.

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

Browse more: all guides · comparisons · glossary · free tools

Unlock the whole studio.

Open the unrestricted AI image generator and take every setting into your own hands.