Image Extender (Content-Aware Canvas Expand)

Make a photo wider or taller without stretching it: the new space is filled with texture copied from the photo itself, ready for social sizes.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Add a photo

    Choose the picture to extend.

  2. 2
    Pick a shape

    Choose a social preset or a custom shape and margin.

  3. 3
    Place the photo

    Move it left, right, up or down on the new canvas.

  4. 4
    Wait for the fill

    The new area is filled automatically.

  5. 5
    Refine

    Change patch size or try another fill.

  6. 6
    Export

    Download the extended picture.

About this tool

Social platforms and websites each want a different shape: 16:9 for YouTube, 4:5 for Instagram, 9:16 for stories, 1.91:1 for link previews. Cropping cuts off the subject; stretching distorts it; borders look lazy. Extending the background is often the best answer. This tool adds canvas around your photo and fills it with texture that matches the existing background, using the PatchMatch method behind content-aware fill.

How the fill works

The new canvas is created with your photo placed where you choose. The empty area is first filled with smooth colours flowing in from the edges. Then PatchMatch searches the photo for small patches (you set their size) that match the area around each missing pixel, and copies them in. This repeats over several sizes, from a coarse version of the picture to the final one, so large structures and fine texture both fit. The fill is computed on a reduced copy for speed, enlarged and blended into the full-size picture with a soft seam.

Shapes and placement

Choose a new shape: the same proportions with extra margin, 1:1, 4:5, 9:16, 16:9, 3:2, 2:3 or 1.91:1. The picture position sliders decide where the original sits, for example at the bottom so new sky is added above, or to one side to leave space for text.

Patch size and variations

Larger patches copy bigger structures such as waves, clouds or brick rows; smaller patches suit fine textures like grass or sand. If a fill shows an obvious repeat, use try another fill to start from a different random seed.

What extends well

Skies, seas, sand, grass, fields, foliage, plain or textured walls, studio backgrounds and blurred backgrounds. These are the backgrounds that usually surround a subject.

What does not

The tool copies existing texture; it does not imagine new objects. It cannot complete a person cut off at the frame, continue text or invent a building. Generative outpainting models that can do that, such as LaMa or diffusion models, are hundreds of megabytes and do not run comfortably in a browser, so they are not used here.

Presets

YouTube 16:9, Instagram portrait 4:5, story 9:16, Facebook link 1.91:1 and room around the subject.

Tips

Leave the subject away from the side you extend. If a filled area shows a seam, increase the patch size or try another fill. Crop the result afterwards if the outer edge is less convincing.

Limits

The fill is solved at reduced resolution, so very large extensions are slightly softer than the original photo. Complex scenes may need a manual touch-up. Everything runs locally.

Worked example

A 3000 x 4000 portrait photo on a beach is extended to 16:9 for YouTube: the canvas becomes 7111 x 4000 with the photo centred, and sea, sand and sky are filled left and right with patch size 9.

Quick facts

Frequently asked questions

Does it stretch my photo?

No. The original pixels are kept unchanged; only the new area is filled.

What kind of backgrounds work?

Natural textures and plain backgrounds: sky, sea, sand, grass, walls and blurred backdrops.

Can it add a missing arm or object?

No. It copies texture from the photo and cannot invent new objects.

How do I get a different result?

Move try another fill to use a different random start, or change the patch size.

Why is the new area slightly softer?

The fill is computed on a smaller copy for speed and then enlarged.

Is the photo uploaded?

No. The fill is computed in your browser.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages