Minimum size checks are real, and they are silly
Some 2010-era validators assumed any photo under 50KB must be a broken upload. Applicants who already have a small signature JPG get rejected. Re-saving at quality 100 barely moves the needle and can introduce ringing. Padding the container is the honest fix: the decoder ignores COM segments, pixels stay identical.
How it works
- Drop the too-small JPG, PNG, or HEIC.
- Set the minimum — 50KB and 100KB presets are the usual asks.
- Process. If the file is already larger, it is re-encoded once at high quality without padding.
- Download and verify the Finder/Explorer size meets the form’s minimum.
Forms that reject files that are “too small”
| Where it shows up | Typical cap | Notes |
|---|---|---|
| State exam photo validators | min 50KB | Also max 100KB on the same field |
| Passport e-quota systems | min 20–50KB | Rejects empty-looking JPEGs |
| Bank cheque-image upload | min 50KB | Quality floor implemented as a size floor |
| Legacy ColdFusion forms | min 100KB | Hard-coded client validation |
Grow the file, do not invent fake detail
After a high-quality JPEG encode, if byteLength is still below the minimum, ExactKB inserts a COM marker filled with harmless padding until the length matches. Image viewers and browsers ignore it. No upscaling, no generated texture.
FAQ
Will the portal notice padding?
Validators that only check Content-Length or file size will pass. We have not seen a government form parse COM segments.
Does this make the photo look bigger on screen?
No. Pixel width and height stay the same. Only the file size changes.
Can I pad to 500KB?
Yes via custom size, but if the form also has a max, stay inside both.
PNG output?
Output is JPEG so the COM pad is well-defined.
Is this the same as adding metadata?
It is a comment, not GPS. The EXIF strip still happens on encode.