Outpainting
Outpainting is the use of a generative image model to extend a picture beyond its original edges, inventing new content that matches the existing scene.
Outpainting is the mirror image of inpainting. Inpainting fills a hole inside a picture; outpainting fills the space around it. The original image is placed on a larger canvas, a mask marks the empty area to be filled while the original is kept, and a diffusion model generates new pixels that continue the colours, lighting and objects at the edges. A text prompt can steer what appears in the new area.
OpenAI added Outpainting to DALL-E on August 31, 2022, making it available to all DALL-E users on desktop. The company said it took account of shadows, reflections and textures in the original so that the extension fitted, and that it could produce large images in any aspect ratio. Its announcement featured artist August Kamp's extension of Johannes Vermeer's Girl with a Pearl Earring well beyond the painting's frame.
Open-source tools offer the same thing. Hugging Face's diffusers documentation shows outpainting a product photo of a pair of shoes with an inpainting model, adding a depth estimate as extra guidance so the generator does not add unwanted details. Typical uses are turning a square photo into a wide banner, making room for text in a design, or recomposing a shot that was framed too tightly.
What outpainting adds is invented. The model has no knowledge of what was really beyond the edge of the frame; it produces something plausible. That is harmless for a banner image, but an outpainted news photograph shows things the camera never saw, which makes it synthetic media and something to disclose.
Inpainting regenerates an area inside an image, for example to remove an object or replace a face. Outpainting adds new content outside the original borders, making the picture larger. Both use the same idea: a mask marks the region to generate and the model fills it to match the surrounding pixels. OpenAI introduced outpainting in DALL-E in August 2022, and many image editors and generators now include a similar feature. Open-source libraries such as Hugging Face's diffusers let developers outpaint with Stable Diffusion models. Only the original part is. Everything added beyond the original frame is generated by the model to look plausible, not recovered from reality. If an outpainted photo is used in a context where people will assume it is a real record, the added content should be disclosed.Common questions
What is the difference between inpainting and outpainting?
Which tools can outpaint?
Is an outpainted image real?
Search for "outpainting diffusion", "inpainting vs outpainting" or "extend image AI" to see how the technique is used. Reliable sources include documentation for open-source image libraries such as diffusers, announcements and help pages from the companies that offer the feature, and research papers on image completion. Before-and-after examples in marketing are selected to look good, so test with your own images.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.