Why portals set limits
Exam and visa portals reject files outside a set size. Some set both a minimum and a maximum, such as 20–50 KB.
How the tool fits a file
The tool searches JPEG quality for the highest setting that fits. If needed, it switches to a stronger encoder.
If nothing fits
The tool says so and does not hand over a file that breaks a limit. Retake the photo against a plainer background.
KB and MB
Portals count KB differently. The tool stays inside both readings: 1 KB as 1,000 bytes for maximums and 1,024 bytes for minimums.