About PhotoSpec
A document photo should not cost an appointment at a photo studio, and it should not be a guess.
Why it exists
Document photo requirements are written in millimetres and percentages: head height between 32 and 36 mm, eye line at a set distance from the bottom edge, tilt within a few degrees. Nobody can judge that by eye, which is why people pay a studio — or upload their face to a paid site and hope for the best.
The measuring part is arithmetic. Browsers have been able to do it for years. That is the whole idea behind this tool.
How it works
A face detection model finds the eyes and the chin. From those points the frame is rotated until the eye line is level, the head is scaled to the middle of the allowed range, and the crop is placed so the eyes land where the specification puts them. No dragging a rectangle by hand, no guessing at the zoom.
You see the checklist, not a verdict
Then comes the part that matters most: a list of what was measured against what is required. You should be able to see that a photo will pass — with the number and the tolerance in front of you — not just be told that it will.
- Head height34.2 mm
- Eye line from bottom27.1 mm
- Head tilt0.4°
- Output resolution827 × 1063 px
- Backgrounduneven on the left
A file for the form, a sheet for the printer
Online applications want one file at an exact pixel size and print density. Counters want paper. You get both: a JPEG written with the correct DPI in its header, and a 10 × 15 cm sheet with cut lines that any photo kiosk prints for the price of a single print.
Where the requirements come from
Verified requirements come from ICAO Doc 9303 and official consulate pages — read and entered by hand, one format at a time. A verified page links to that source and shows the date it was last checked against it.
Getting there for every country takes time, so the rest of the catalogue starts from a compiled reference of sizes. Those formats work, but they say plainly that nobody has confirmed their numbers yet, and they stay out of search results until someone does. We would rather tell you a measurement is unconfirmed than let you find out at the counter — a two millimetre mistake means a rejected application.
Your photo stays on your device
There is no upload. Decoding, detection, cropping and export all run in your browser; the detection model is served from this domain and executed locally. Close the tab and nothing of your photo remains anywhere, because it was never anywhere else — the privacy policy says the same thing at greater length.
What this is not
Not a retouching tool: no smoothing, no makeup, no “improved” faces — consulates reject edited photos. Not an account system: there is nothing to sign up for and nothing kept between visits. And not a promise that an official will say yes, which the terms spell out.
Contact
An independent project, not a company with a support department. Mail goes to the people who build it: support.photospec@gmail.com. Corrections to a format’s numbers, with a link to the official source, are answered first.