Extend

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.

How to use Extend

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.

Extending an image

In the example below, the Extend function is used to generate a visual extension and add context that seamlessly blends around the main image.

Original image.

Here's how to do it:

  1. Open or import the image in Canvas.

  2. Click the Extend button on the left-side panel.

  3. 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.

Placement of the original image within the frame and the empty space left around it.
  1. 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.

  1. Adjust any additional options, like Style and Magic Prompt, as desired.

  2. Click Extend to generate the images.

  3. 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.

Image selection in the bottom menu.

Here's one of the four images that was generated:

Final image.

Here's another example. This time, an image was extended in a panorama style format:

Original image.
The generation window is resized horizontally into a banner-like format, with the image strategically placed for a well-balanced composition.
The final image.

Refining while extending an image

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.

The original image to be modified.

Here's how to do it:

  1. Click the Extend button on the left-side panel.

  2. 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.

  3. Mask the glass of water with the Masking Tools to indicate it should be replaced in the generated image.

  1. Enter a prompt that describes:

    1. The part overlapping the original image.

    2. What should be generated where the image will be extended.

    3. 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.

  1. Adjust any additional options as desired.

  2. Click Extend to generate the images.

  3. Select the image and use the arrows at the bottom to view all four generated options and choose the one you like.

The resulting image after extending it on the left and changing a part of the original image.

Advanced and creative examples

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.

Generate context around an object

In this example, a whole environment will be created around the image of a wine bottle.

Here's how to do it:

  1. Upload or copy/paste your image in Canvas.

  2. If possible, use the remove background tool to get a transparent background.

    1. 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.

  3. Click the Extend tool on the left-side panel.

  4. Reposition and resize the Extend generation window to your liking with the object inside the generation window.

The original wine bottle image.
Background removed and bottle placed in the generation window.
  1. 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.

  2. Select the image and use the arrows at the bottom to view all four generated images and choose the one you like.

The final image of the bottle integrated into the decor.

Same subject in another image style

In the example below, a woman in a photo will be transformed into a caricature.

Here's how:

  1. Open, upload or copy/paste your image in Canvas.

    1. 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.

Original image.
  1. 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.

The generation window adjusted to overlap the original image and extend on the right side.
  1. 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

  1. Select the image and use the arrows at the bottom to view all four generated images and choose the one you like.

Final image as caricature.

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.

... a cartoon character showing the same woman as if she was a schoolgirl. Style used: General
... a 3D character depicting the same woman as a chibi character. Style used: 3D
... a kid's coloring book page showing the same woman as if she was a mermaid. Style used: Realistic
... a pop art poster depicting the same woman as a pop art comic character. Style used: Design

Tips and tricks for best results

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.

Last updated