Crop to a shape
Crop to square, 4:5 or any shape, around the product or the faces, found for you. The background stays.
How it works
The background-removal model finds the product, or a face detector the faces, and the photo is cropped to the shape you choose: the largest crop of that shape, moved so the product is in the middle, or a close crop with room around it. The background stays.
- You choose
-
- 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
- Around: The product, The faces
- Crop close around it
- Room around it: 5%, 10%, 20%, 30%, 60%, 100%
- It takes
- One photo at a time, or a whole folder at once in the browser.
- You get
- The photo cropped to the shape, and whether a product was found.
- Cost
- 1 credit a photo
In the API
One request a photo, with an API key from the console. POST /v1/crop
curl -X POST "https://api.photos.sh/v1/crop?aspect=1%3A1&focus=subject" \
-H "Authorization: Bearer $PHOTOS_KEY" \
-H "Content-Type: image/jpeg" \
--data-binary @photo.jpg \
-o result.jpg
More tools to get it ready
- Expand the canvasAdd room around a photo to reach a shape, continuing a plain background or filling it with a colour.
- 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 Crop to a shape.