Introduction
Imagine you have a photo with some parts missing or you want to add more scenery beyond the edges. Inpainting and outpainting help solve these problems by filling in missing areas or extending images naturally.
Think of a torn painting where some parts inside the frame are missing; an artist carefully fills those gaps to restore the picture (inpainting). Now imagine the artist wants to make the painting bigger by adding more scenery around the edges that matches the original style (outpainting).
┌───────────────┐ ┌───────────────────┐
│ │ │ │
│ Original │ │ Original + │
│ Image │ │ Outpainting │
│ (with gap) │ │ (extended edges)│
│ ■■■ │ │ ■■■■■■■■■■■■ │
│ ■ ■ │ │ ■ ■ │
│ ■■■ │ │ ■ ■ │
└───────────────┘ └───────────────────┘
↑ ↑
│ │
Inpainting Outpainting
(fills gap) (adds outside)