Compression guide
How to compress an image for online form uploads
Upload portals set file-size limits to keep databases small and submissions fast. A photo that looks fine on your phone can still be several megabytes—far above a 20 KB, 50 KB, or 100 KB cap.
Compression reduces file size by storing the image more efficiently or by discarding some detail. Choosing the right format and compressing after you crop and resize—not before—gives the clearest results under tight limits.
Why portals care about kilobytes
Every application system stores and transmits uploaded files. Smaller files reduce cost and make pages load faster for staff reviewing thousands of applications. That is why exam photos and signatures often have aggressive KB caps.
Meeting the limit is necessary but not sufficient. The face, signature strokes, or document text must remain readable after compression. A tiny unreadable file can still be rejected.
JPG, PNG, and WebP
JPG (JPEG) uses lossy compression that works well for photographs. It is the default choice for passport photos, exam portraits, and document photos when the portal allows it.
PNG is better for sharp line art and some signatures, but PNG files are often larger for continuous-tone photos. WebP can be efficient, yet many government portals still reject it. Always prefer the formats listed on the form.
The right order of operations
Start with the highest quality original you have. Crop to the required aspect ratio, resize to the required pixels, then compress to the KB target. Compressing a huge image first, then cropping, wastes quality on pixels you will discard.
If the result is blurry, do not compress the download again. Go back to the original, improve crop and lighting, and export once at a quality setting that lands just under the limit.
Lossy versus lossless in practice
Lossless methods keep every pixel detail but may not shrink enough for a 20–50 KB rule. Lossy JPG removes subtle detail people rarely notice in a small portrait. For signatures, watch for speckled strokes—if ink turns into noise, increase contrast on the source or ease compression.
Document scans need special care: fine print and stamps degrade quickly. Aim for the largest allowed file that still passes the KB check.
Troubleshooting rejected files
Read the error message. “File too large” means lower KB. “Invalid format” means export JPG or PNG as required. “Invalid dimensions” means fix width and height before worrying about compression.
Messaging-app forwards are often already compressed. Ask for the original camera file whenever possible. A clean source compresses more gracefully than a screenshot of a screenshot.