regula.tools
100% Client-SideMedia & Graphics

Privacy-First Biometric Passport & Visa Photo Maker

Convert any well-lit portrait taken at home into a properly framed, background-cleaned passport or e-Visa photograph without uploading sensitive biometric facial imagery to third-party servers. Combines lazy-loaded on-device WebAssembly face landmark alignment, portrait background replacement, advisory ICAO 9303 validation, 300-DPI metadata injection, and multi-tile 4×6" / A4 printable cut sheets.

Loading workspace...

#How to Use This Tool

1Choose your target country or portal standard (such as Vietnam e-Visa 4×6 cm 2:3, Schengen 35×45 mm, USA DS-160 2×2 in, Turkey 50×60 mm, or Custom mm).
2Upload, drag-and-drop, or paste a sharp frontal portrait taken in even indoor light (or click Load Sample Portrait to test immediately).
3Allow the on-device AI vision runtime to detect eye-line, chin, crown, and background contour cleanly without transmitting a single pixel off your device.
4Use Auto-Center Face (ICAO) or manual Zoom, Pan, Rotate, Background Swatches, Edge Feathering, and Restore/Erase Brush to refine hair and collar boundaries.
5Review the Advisory Biometric Audit scorecard for head height ratio, horizontal symmetry, tilt angle, lighting uniformity, and portal KB compliance.
6Download the EXIF-stripped digital file (at exact dimensions, max KB cap, and 300 DPI metadata) or generate a tiled 4×6" (10×15 cm) / A4 printable photo sheet.

#Mathematical Formula & Standards

Physical-to-digital scaling maps millimeter specifications at 300 DPI via P = round((mm × 300) / 25.4): for example, a 40 × 60 mm (2:3) Vietnam e-Visa portrait maps to 472 × 709 px (or 800 × 1200 px high-res portal scale), while 35 × 45 mm Schengen maps to 413 × 531 px and 2 × 2 in (50.8 mm) US DS-160 maps to 600 × 600 px. ICAO 9303 framing locks head occupancy R_head = (y_chin - y_crown) / H_frame within preset tolerances (typically 58%–80%, or 44%–52% for Canada) and locates eye-line elevation E = 1 - (y_eyes / H_frame) within 50%–69% from bottom. Exporting embeds JFIF APP0 DPI headers (FF E0) or PNG pHYs chunks (11,811 px/m = 300 DPI) while stripping smartphone camera EXIF/GPS metadata. Official Country Specification Matrix (ICAO 9303 Aligned): • Vietnam e-Visa: 40 × 60 mm (2:3) | 800 × 1200 px | Plain White (#FFFFFF) | <= 2048 KB | JPEG only | Eyeglasses removed | 58%–76% head ratio • USA DS-160 & DV: 2 × 2 in (50.8 × 50.8 mm) | 600 × 600 px to 1200 × 1200 px | Plain White (#FFFFFF) | <= 240 KB | JPEG only | Eyeglasses prohibited | Original backdrop required • Schengen Visa: 35 × 45 mm | 827 × 1063 px (300 DPI) | Light Grey (#F3F4F6) or Off-White | Unrestricted | JPEG/PNG | 70%–80% face height (32–36 mm) • Turkey Biometric: 50 × 60 mm | 591 × 709 px | Plain White (#FFFFFF) | Unrestricted | JPEG/PNG | 60%–75% head height | NVİ warns: do not trim to 35 × 45 mm • UK HMPO Passport: 35 × 45 mm | Min 600 × 750 px (600 × 771 px) | Light Grey/Cream (#F3F4F6) | 50 KB – 10 MB | JPEG only | Head 29–34 mm (64%–76%) | No software edits • Spain DNI / Pasaporte: 26 × 32 mm | 307 × 378 px (300 DPI) | Plain White (#FFFFFF) | <= 2048 KB | JPEG/PNG | Head 68%–80% | Policía Nacional official size • Canada Passport: 50 × 70 mm | 591 × 827 px | Plain White (#FFFFFF) | Unrestricted | JPEG/PNG | Head 31–36 mm (44%–52%) | Commercial studio required • China Visa (COVA): 33 × 48 mm | 354 × 472 px to 420 × 560 px (385 × 560 px) | Plain White | 40 KB – 120 KB | JPEG only | Head 28–33 mm (58%–70%) • India e-Visa: 2 × 2 in (50.8 × 50.8 mm) | 350 × 350 px to 1000 × 1000 px | Plain White | 10 KB – 1000 KB | JPEG only | 52%–70% head ratio • Japan Visa & MyNumber: 45 × 45 mm (Visa) / 35 × 45 mm (MyNumber) | Plain White | JPEG | 20 KB – 7000 KB | 65%–78% head ratio • Australia Passport: 35 × 45 mm | 413 × 531 px | Plain White or Light Grey | <= 3072 KB | JPEG/PNG | Head 32–36 mm (71%–80%) | No background removal edits • Brazil Passport: 50 × 70 mm | 591 × 827 px | Plain White (#FFFFFF) | Unrestricted | JPEG/PNG | Head 58%–74% | Children < 5 & consulates

#Edge Cases & Technical Considerations

Strict Portal KB Ceilings (US DS-160 <= 240 KB & China Visa <= 120 KB)

High-resolution phone exports often fail embassy uploads because a 600×600 or 800×1200 photo exceeds 240 KB–2 MB caps. Enable the Max File Size Target toggle in Export to run deterministic binary-search JPEG quality optimization until the image sits comfortably below the official portal limit.

Physical 300 DPI Headers vs Raw Web Pixels

Standard HTML5 Canvas exports default JFIF density to 72/96 DPI or omit PNG physical scale chunks. Copying or printing at local labs can stretch dimensions if physical DPI is missing. Keep Embed 300 DPI Physical Metadata enabled so JFIF APP0 and PNG pHYs chunks report exact millimeter dimensions.

Preventing Dark Wall Color Halos Around Fine Hair

Shooting against a dark or saturated indoor bedroom wall can leave a tinted fringe along curly hair strands when replaced with pure white (#FFFFFF). Adjust Cutout Tightness and Edge Spill Removal in the Background tab, then sweep the Manual Brush for fine collar or hair precision.

Vietnam e-Visa 4×6 cm (2:3) vs Printed Passport Differences

Vietnam e-Visa uploads require a 2:3 portrait proportion (equivalent to 4×6 cm, zero borders, pure white background, no eyeglasses) under 2 MB. This tool defaults Vietnam e-Visa to crisp 800×1200 px digital delivery while also letting you download a 4-photo 4×6" (10×15 cm) sheet for arrival backup copies.

#Frequently Asked Questions

Q:Are my passport or visa photos uploaded to any cloud server?

Never. Face landmark detection, portrait background removal, color correction, 300-DPI header writing, and print-sheet assembly run 100% locally in your browser using self-hosted WebAssembly models and HTML5 Canvas. Built-in MediaPipe telemetry pings are also explicitly disabled so zero external tracking calls occur.

Q:Why are the AI vision models loaded only after I select a photo?

To keep initial page loads fast (~0 ms extra weight) and preserve battery and mobile bandwidth when visitors only want to look up country size rules, the ~18 MB WebAssembly and model files load strictly on demand when you drop or open a portrait.

Q:What are the exact photo rules for a Vietnam e-Visa (evisa.gov.vn)?

The Vietnam Immigration Department strictly requires a 4 × 6 cm portrait in 2:3 vertical aspect ratio, taken against a solid pure white background without patterns or shadows. Prescription eyeglasses and sunglasses must be removed per official guidelines. The file must be under 2 MB and uploaded in JPEG format.

Q:Why does the US DS-160 visa portal reject my photo for exceeding 240 KB?

The U.S. Department of State Consular Electronic Application Center (CEAC) enforces an absolute maximum file size cap of 240 KB for digital JPEG uploads, with dimensions between 600×600 and 1200×1200 pixels. Our export engine uses binary-search JPEG compression to aim below the 240 KB ceiling while preserving facial clarity and 300 DPI metadata.

Q:Why does Schengen Visa require light grey instead of pure white background?

ICAO Doc 9303 and EU Visa Code standards specify a plain, light neutral background (light grey #F3F4F6 or soft cream) so that light-colored hair, white collars, and facial contours maintain clear optical contrast against the backdrop. Our Schengen preset defaults to the official light neutral shade while keeping face height between 32 mm and 36 mm (70%–80% of frame).

Q:Why does Turkey (NVİ) require 50 × 60 mm instead of the standard 35 × 45 mm?

The Turkish General Directorate of Civil Registration and Nationality (NVİ) mandates a 50 × 60 mm photograph for passport, national identity card (kimlik), and driving license applications. NVİ explicitly instructs applicants and photographers not to trim photos down to 35 × 45 mm, as Turkish statutory standards require the 50 mm width to ensure full facial geometry from ear to ear.

Q:What are the digital photo requirements for HM Passport Office (UK)?

HM Passport Office requires digital uploads to be at least 600 pixels wide by 750 pixels tall, between 50 KB and 10 MB in file size, taken against a plain light-coloured (light grey or cream) background without smiling, head tilt, or eyewear glare. Printed UK photos must measure exactly 35 × 45 mm with head height from chin to crown between 29 mm and 34 mm.

Q:Why does resizing at 300 DPI strip my phone GPS and camera EXIF data?

Drawing your portrait onto a clean Canvas pixel buffer discards camera serial numbers, timestamps, and embedded GPS latitude/longitude coordinates automatically before generating the clean JFIF or PNG output file, protecting your physical location privacy.

Q:Does a Pass badge here guarantee government visa or passport approval?

No automated client tool can guarantee acceptance. Our audit score verifies geometric alignment, resolution, file size, and corner uniformity heuristically against ICAO 9303 guidelines. You remain responsible for ensuring neutral expression, unobstructed eyes, natural lighting without heavy shadows, and current embassy portal rules.

Have feedback or feature requests?

Help us improve this utility. Share suggestions, report edge cases, or request new features directly.

Send Feedback

#Related Utilities

Explore complementary tools running on-device with zero server upload.