2026-10-22
Every upload field on an official form enforces three separate limits at once, and only one of them has anything to do with file size. Compress a photo for an online form without checking all three and you get the error that explains nothing: upload rejected, reason not stated. The three are a maximum file size, a pixel dimension range, and an accepted file format. Forms check them in that order and stop at the first one that fails.
A passport photo file size limit usually sits somewhere between 50KB and 500KB, and a fair number of portals still cap at 100KB. Visa and residence permit systems tend to be fussier about dimensions than about size. University and job application portals are the loosest of the three. The order decides the outcome: a file that fails on dimensions never reaches the size check.
Visa applications are where the three limits bite hardest, because the photo also has to work as a passport photo. The numbers move with the system and the year, so the form in front of you is the authority. This list is here to tell you which field to go and read.
A 100KB photo upload ceiling sounds impossible on a modern phone, and it is not, because the cameras kept improving while the forms did not. The difficulty is the order rather than the algorithm. Compressing a 12 megapixel original down to 100KB is impossible at any quality setting. Resizing it to 1200 px wide first and then compressing at quality 70 to 80 usually leaves room to spare.
For a form, yes. The receiving side only intends to look at it on a screen at a small size, and 1200 px wide at under 200 KB is plenty for that. Printing needs a different set of settings, and the trade between print and screen is in /blog/compressed-vs-resized-image.
Usually the format or the dimensions. HEIC cannot be read by many government systems and older Windows builds, and the error they throw often looks like a size problem. Some forms also cap dimensions and total pixel count separately, so check which limit is written down. The conversion is in /blog/convert-heic-to-jpg-free.
Dimensions win. A file outside the dimension range is rejected outright, while a file over the size cap still has compression available. Fix the pixels first and the size second, and the two-step order is in /blog/resize-and-compress-image.
No. A batch is the same single operation run a dozen times. What does hurt is compressing the same file repeatedly, where each pass removes another layer of fine detail. The batch route is in /blog/batch-compress-images-multiple and the reason in /blog/does-compressing-image-reduce-quality.