Rules checked 2026-12-01
On-Device Processing & Compliance Methodology
OfflineIDPhoto runs MediaPipe 468-landmark facial geometry, eye-line leveling, binary-search JPEG kilobyte compression, and 300 DPI multi-tile print layout strictly inside your browser tab via on-demand WebAssembly, checking each listed document against published government photo rules while leaving original backgrounds untouched for agency acceptance.
Pipeline Stages & Primary Standards
| Stage | Browser-Local Operation | Reference Rule / Guardrail |
|---|---|---|
| 1. OOM Downscale & Lazy Load | Caps working canvas at 1600 px max edge; loads WASM only after file selection | Prevents mobile Safari memory crashes; see CSP host policy |
| 2. Facial Geometry & Framing | 468-landmark eye-line rotation, chin-to-crown ratio & top-margin centering | ICAO Doc 9303, U.S. 8 FAM 402.1, GOV.UK & Canada.ca |
| 3. Byte-Target Export & Print | Binary-search JPEG quality encoder + 300 DPI 4×6" / 10×15 cm / A4 sheet tiling | Meets strict portal caps (e.g., ≤240 KB DS-160) & ≥3 mm safe trim margins |
1. Mobile Memory Guard & Lazy Loading
Landing pages ship pure static HTML with zero eager AI model downloads so pages load fast on mobile connections. Only after you pick a photo does the studio downscale images to a safe 1600px maximum edge and load the face-landmarker on demand. The privacy page lists where those files come from.
2. ICAO Geometry & Binary-Search Compression
Facial landmarks compute eye-line leveling angles, crown-to-chin height ratios, and the framing for each document. For online government portals with strict KB caps (such as DS-160’s 240 KB limit), a binary-search JPEG encoder finds the highest visual quality under the byte limit. The top of the head is estimated from facial landmarks, so tall hair needs a check by eye; if no face is found, head and eye positions are reported as not measured. Lighting, expression, glasses, shadows and focus are not checked.
3. How We Check Photo Rules
A document is listed only when an official source gives its photo size, head size and background and lets you supply your own photo. Each page links those sources and shows the date we read them. Some government sites block automated reading; we then read the page text through a search index and say so next to the link. When two official sources disagree, we use the stricter figure and note it. When a source gives one rounded head size, such as about 75%, the checklist accepts three points either way. Where the source gives no space above the head, the studio puts 40% of the spare height there.
The studio only crops, levels and resizes. It does not edit backgrounds, because many agencies refuse edited photos. Some agencies may still ask for the untouched original, so read the linked source first.
4. Scope & Disclaimer
Based on the official sources linked on each page, with automated geometry checks. Not affiliated with any government. Always inspect your exported photo against your target embassy or agency instructions; biometric lighting, posture, and expression remain the applicant’s responsibility.
Frequently Asked Questions
Does OfflineIDPhoto check lighting, shadows, or facial expression automatically?
No. MediaPipe landmarks measure frame proportions, head height, eye line, and file byte limits only. You must inspect lighting, neutral expression, focus, and plain backdrop uniformity against your target agency rules before submitting.
When does the browser download the face-alignment WebAssembly files?
Only after you select a photo inside the studio. Initial HTML pages ship zero eager WebAssembly or model downloads to keep page loads fast and bandwidth minimal.