Expand the canvas
Add room around a photo to reach a shape, continuing a plain background or filling it with a colour.
How it works
The photo is put on a larger canvas, to a shape or by pixels on each side, and an inpainting model continues it into the new area. That suits a studio backdrop, a table, a wall or sky. It does not invent content: a product cut off at the edge stays cut off. Or fill the new area with white or a colour.
- You choose
-
- Add room: To a shape, By pixels
- Shape: Square, 1:1, Portrait, 4:5, Portrait, 3:4, Portrait, 2:3, Landscape, 4:3, Landscape, 3:2, Wide, 16:9, Story, 9:16
- Top
- Bottom
- Left
- Right
- The new area: Continued, White, Colour
- It takes
- One photo at a time, or a whole folder at once in the browser.
- You get
- The photo on its larger canvas.
- Cost
- 1 credit a photo
In the API
One request a photo, with an API key from the console. POST /v1/expand
curl -X POST "https://api.photos.sh/v1/expand?aspect=1%3A1" \
-H "Authorization: Bearer $PHOTOS_KEY" \
-H "Content-Type: image/jpeg" \
--data-binary @photo.jpg \
-o result.jpg
More tools to get it ready
- Crop to a shapeCrop to square, 4:5 or any shape, around the product or the faces, found for you. The background stays.
- Resize and compressChange the size, trim an even border, convert to JPEG, WebP, PNG or AVIF, and keep files under a size.
- Add a watermarkPut your logo or a line of text on every photo, in a corner or repeated across it.
- Passport photoFrame a portrait the way a passport asks: the head level, at the right size and place, on a photo of the right size.
- PresetsReady-made looks in one step: marketplace white, studio, social, cut-out or web.
- Trace into SVGTurn a logo, an icon or a flat drawing into an SVG that stays sharp at any size.
Try it on your own photos.
Create an account, buy a pack when you need one, and drop your first photos into Expand the canvas.