Passport photo
Frame a portrait the way a passport asks: the head level, at the right size and place, on a photo of the right size.
How it works
The one face is found, and the person’s outline gives the top of the head. The photo is turned so the eyes are level, then scaled and cropped so the head, chin to crown, sits in the middle of the document’s range, on a photo of its size at 300 or 600 DPI. Built in: the passports of the United States, the United Kingdom, Canada and Australia, or give any document’s sizes. The background is kept unless you replace it. What it sees wrong is listed (a tilted head, a face turned away, a head cut off, too little room, low resolution, a busy background); expression, glasses, shadows and likeness are for you to check.
- You choose
-
- Document: United States passport (2 × 2 in), United Kingdom passport (35 × 45 mm), Canada passport (50 × 70 mm), Australia passport (35 × 45 mm), Another: give its sizes
- Photo width
- Photo height
- Head at least, chin to crown
- Head at most
- Background: Keep it, As asked, White
- Background: Keep it, White
- Print resolution: 300 DPI, 600 DPI
- It takes
- One photo at a time, or a whole folder at once in the browser.
- You get
- The photo at the document’s size, the head’s height in millimetres, and what was found wrong.
- Cost
- 1 credit a photo
In the API
One request a photo, with an API key from the console. POST /v1/id-photo
curl -X POST "https://api.photos.sh/v1/id-photo?document=us-passport&dpi=300" \
-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.
- 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.
- 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 Passport photo.