Online passport, visa and ID forms combine three rule sets: pixels, picture rules, and file size. Miss any one and the upload fails — often without saying which.
Pixels: 413 × 531
That is 35 × 45 mm at 300 dpi — the printed passport photo size expressed in pixels. Set it exactly with the Passport preset on the Resize Image page. A few countries use different crops; your form's photo line always wins.
Picture rules
Plain white or light background with no objects or shadows; even light with no shadow across the face; head centred, filling roughly 70–80% of the frame height; eyes open and level; no glasses glare; no head covering except for religious reasons; no filters or beauty modes. Automated checkers measure head position and background uniformity, so a plain photo against a wall beats a polished photo against a bookshelf.
File rule: under 50 KB, JPG
The same photo that passes the picture rules still fails at 80 KB. Compress last, after framing and resizing are final, so every byte is spent on the finished crop. And if your portal counts 50 KB as 50,000 bytes, target 48 KB.
The order that works
Frame → resize to 413 × 531 → compress under 50 KB. That is exactly what the Passport Photo 50 KB page walks you through.