What is outpainting?
Outpainting is AI image generation that extends a picture past its original edges. You add empty canvas on one or more sides, and the model fills it with more of the same scene: the sky goes on, the table gets longer, the room gets wider. It is cropping in reverse.
ComfyUI's tutorial names the case it solves: an image that "has good composition but the canvas area is too small". Adobe ships the same idea in Photoshop as Generative Expand, and AUTOMATIC1111's Stable Diffusion web UI lists outpainting among its features.
How outpainting works
Outpainting is inpainting on a bigger canvas. Inpainting fills a masked area of an image and leaves the rest alone; in the diffusers docs, white pixels in the mask are repainted and black pixels are kept. Outpainting pads the image with blank space and marks that new space as the mask, so the model paints only the border and the original pixels stay.
ComfyUI's guide says as much: its outpainting workflow is "actually an Inpaint workflow". A Pad Image for Outpainting node sets the extension with four values (left, top, right and bottom) and a fifth, feathering, which softens the transition between the original and the new area.
In Photoshop the same job takes four moves:
- Pick the Crop tool, with Fill set to Generative Expand.
- Drag the crop edges out past the photo.
- Type a prompt, or leave the field empty and let Photoshop follow the surrounding image.
- Click Generate, which gives three variations to choose from.
Outpainting vs inpainting vs cropping
| Outpainting | Inpainting | Cropping | |
|---|---|---|---|
| Canvas | Grows | Stays the same size | Shrinks |
| What is generated | The new border | The masked area inside | Nothing |
| What can go wrong | A seam, a jump in scale | A patch that doesn't match | Cutting the subject |
Where it goes wrong
Two failures are common. The first is the seam: the line where the original ends and the new paint begins, which feathering exists to hide and which shows most across a smooth sky or a plain wall. The second is scale. The model can paint the continuation at a different size, so a window or a tree at the edge of the original comes back larger or smaller in the new area, and the picture stops reading as one view.
There is also a plainer limit. Everything outside the original edges is invented. For a fantasy scene, that is the point. For a real room, a real product or a real place, the wider view is fiction that looks like a photo.
Why outpainting matters for thumbnails and banners
Changing a picture's shape is where outpainting earns its place. A YouTube banner is the clearest case: YouTube recommends 2560 × 1440, and at the 2048 × 1152 minimum the safe area for text and logos is only 1235 × 338. Fit an existing picture into that narrow strip and most of the banner is left to fill, which is an outpainting job. A TV shows the whole banner, so a seam across a wide sky has nowhere to hide.
The alternative is to paint the whole wide scene as one picture at its final size, so there is no edge to hide. Outpaint when the original picture is the thing that has to be kept. Generate at full width when it isn't.