Extend
Last updated
Last updated
Extend, also known as outpainting, lets you expand your image beyond its original edges. It can also modify existing parts of the image, similar to Magic Fill.
It is best to review the Canvas page beforehand to gain a better understanding of its interface and various elements. This will help you more easily follow the steps in the examples shown below.
In the example below, the Extend function is used to generate a visual extension and add context that seamlessly blends around the main image.
Here's how to do it:
Open or import the image in Canvas.
Click the Extend button on the left-side panel.
Reposition and resize the Extend generation window around the original image, leaving empty space around it where you want to add to the original image.
Write a detailed prompt containing all visual aspect of the final image you want.
Here's the prompt used: A photo of a young boy holding a chocolate chip cookie beside a rustic kitchen table with a cookie jar full of cookies, a plate with two cookies and a glass of milk. He is wearing a white t-shirt and green overalls. The background is blurred, but it appears to be an indoor setting with a neutral color palette.
Adjust any additional options, like Style and Magic Prompt, as desired.
Click Extend to generate the images.
Once the process is complete, you can cycle through the four generated images by selecting the generated image and clicking the left or right arrow in the menu at the bottom of the image.
Here's one of the four images that was generated:
Here's another example. This time, an image was extended in a panorama style format:
In this example, two modifications will be done at the same time:
A man cutting vegetables will be added to the left side of the image.
The glass of water will be changed into a cup of coffee.
Here's how to do it:
Click the Extend button on the left-side panel.
Reposition and resize the Extend generation window to your liking, trying to keep the generation window as small as possible while keeping visual context for the AI to work with.
Mask the hand and glass of water to indicate they should be replaced in the generated image.
Enter a prompt that describes:
The part overlapping the original image.
What should be generated where the image will be extended.
The changes to be made to the masked areas.
Prompt used: A photo of a middle-aged woman with short hair holding a cup of hot coffee in a modern, white kitchen with wooden countertops. She is wearing a blue shirt and a necklace. A man is chopping vegetables on the counter beside her.
Adjust any additional options as desired.
Click Extend to generate the images.
Select the image and use the arrows at the bottom to view all four generated options and choose the one you like.
The Extend tool can be used creatively to achieve impressive results. The examples below demonstrate how using the tool in creative ways can lead to surprising outcomes. For example, you can take an image of an object and create a whole environment around it.
The advanced techniques presented below sometimes push the tool to its limits. They are more about creative exploration and achieving good results can be challenging at times. Indeed, many factors influence the final rendering of the image like the prompt, the original image, the options used, etc.
Experimenting with prompts and different options is often essential, but even then, results may vary. If you encounter difficulties, you can ask for help in the #prompt-w-friend channel on our Discord server. Simply share your prompt, the generated image, and a brief description of the issue. Other users may be able to help you achieve better results.
In this example, a whole environment will be created around the image of a wine bottle.
Here's how to do it:
Upload or copy/paste your image in Canvas.
If possible, use the remove background tool to get a transparent background.
Alternatively, you can mask out the areas around the object manually using the mask tools that will be available in the Extend tool after the next step.
Click the Extend tool on the left-side panel.
Reposition and resize the Extend generation window to your liking with the object inside the generation window.
Write a detailed prompt that describe the image to be generated in details. Prompt used: A bottle of red wine labeled 'CASTLE CELLARS' is in a dimly lit room, featuring a wooden table and a candle. A glass of wine is near the bottle, and a cork is on the wooden surface. In the background, there are red and blue grapes. The label is embossed with intricate designs and the castle logo is prominently displayed in the center.
Select the image and use the arrows at the bottom to view all four generated images and choose the one you like.
In the example below, a woman in a photo will be transformed into a caricature.
Here's how:
Open, upload or copy/paste your image in Canvas.
It might be a good idea to have a good description of that image. If a prompt or description isn't already available, use the Describe feature to get one provided by the AI. It will be used later.
Click Extend then resize an position the generation window in a way where the original image will be on one side and the other side will be about the same size as the original image.
Write a detailed prompt that describe both the original image and the image you want to generate.
Prompt used: On the left, a woman with long, wavy, light brown hair and glasses. On the right, a hand drawn funny caricature portraying the same woman.
Style used: General
Select the image and use the arrows at the bottom to view all four generated images and choose the one you like.
Here are other examples that were generated with the same technique, simply by changing the last part of the prompt and using appropriate style options.
Achieving great results with Magic Fill and Extend, especially with advanced techniques, takes a mix of creativity, experimentation, and a bit of patience. Here are some key factors that can impact the final outcome:
Craft precise and detailed prompts – Clarity in wording helps the AI understand what to generate.
Experiment with synonyms and rephrase - Changing a few words or testing different ways of expressing the same idea in a prompt can make big difference.
Start with a high-quality image – The better the input, the better the output.
Consider the complexity of the image – Simpler modifications often yield more accurate results.
Optimize the generation window size – Keeping it as small as possible while including enough context leads to sharper and more realistic outcomes.
Manage your expectations – AI-generated results can vary, so refining your approach and testing different options is key to success.
By experimenting with different approaches, adjusting prompts, and fine-tuning generation settings, you can push the boundaries of what's possible and create stunning images.