How to Extend a Photo's Background for Any Social Media Size
Why cropping and stretching fail, how content-aware fill extends backgrounds, which photos extend well and how to place the subject for each platform.

How to Extend a Photo's Background for Any Social Media Size
Every platform wants a different shape. YouTube thumbnails and website banners are wide, Instagram portrait posts are 4:5, stories and reels are tall 9:16, and link previews are 1.91:1. One photo rarely fits them all. The Image Extender adds background around your photo so it fits a new shape without cropping the subject.
Three bad options and a better one
- Cropping cuts off parts of the photo, often the subject.
- Stretching distorts everything.
- Adding plain or blurred bars works but looks unfinished.
Extending the actual background keeps the subject whole and fills the new space with matching texture.
How content-aware fill extends a picture
The tool places your photo on a larger canvas and marks the empty space as missing. First, each missing pixel copies the nearest real pixel, which continues horizons and colour bands in the right direction. Then the PatchMatch algorithm refines it: for each small patch of the missing area, it searches the photo for a patch that fits well with its surroundings and copies that texture in. It works from a small version of the image up to the full size, so large structures and fine details both match.
What extends well
Natural, repetitive backgrounds extend convincingly:
- Sky, clouds and sea.
- Sand, grass, fields and foliage.
- Plain or textured walls and studio backdrops.
- Out-of-focus backgrounds.
What does not
The method copies texture from the photo. It cannot invent what is not there: a person cut off at the edge, the rest of a sign, a building that continues outside the frame. Generative AI outpainting models can attempt that, but they are hundreds of megabytes and can produce strange artefacts. For backgrounds, texture copying is fast and reliable.
Placing the subject
The position sliders decide where the original photo sits on the new canvas:
- YouTube thumbnails: place the subject to one side and leave space for title text.
- Stories: extend above and below; keep the subject in the middle third.
- Banners: extend left and right; check how the banner is cropped on mobile.
Getting a clean result
- If a pattern repeats obviously, try another fill.
- Larger patch sizes copy larger structures like waves and clouds; smaller sizes suit fine grass or sand.
- If the outer edge looks less natural, crop a little from the final image.
Quick answers
Is the original area changed? No. The original pixels stay exactly as they were; only new space is filled.
Why is the new area slightly softer? The fill is computed on a smaller copy for speed and enlarged to the full size.
A worked example
A portrait-format beach photo, 3000 x 4000 pixels, needs to become a 16:9 YouTube thumbnail. Choosing the 16:9 preset with the photo centred creates a 7111 x 4000 canvas. The sky, sea and sand are continued left and right in a few seconds. The subject is moved slightly to the right with the position slider to leave room for the title on the left, and the fill is regenerated once with a different seed to avoid a repeated shell.
Quick answers
Can I extend only one side? Yes. Move the picture position fully to the other side.
What size is the result? The new canvas size is shown under the preview.
Keep the original file as well: if a platform changes its preferred shape later, you can extend the original again instead of an already extended copy.
Limits
Busy scenes with people and objects near the edges may need manual touch-up. The tool runs locally in your browser, so the photo is not uploaded.



