PicKept

Guides

Hitting a file-size limit: compressing photos for school portals, job forms, and email

Upload forms love size limits. A school portal wants a student photo “under 100 KB.” A visa or license form wants “no larger than 240 KB.” A job site caps attachments at 2 MB. Email starts bouncing somewhere around 20 to 25 MB. Meanwhile a single phone photo is often 2 to 5 MB. This guide explains how to get under a limit while keeping the photo looking like a photo.

Kilobytes are not pixels

Two different things get called “size,” and forms mix them up.

The two are connected but not the same. More pixels usually means a bigger file, but a JPG’s quality setting and the content of the photo matter too. A 1,000-pixel photo of a busy crowd can be larger than a 2,000-pixel photo of a white wall.

When a form gives a KB limit, use Compress. When it gives a pixel limit, use Resize. When it gives both, resize first, then compress, as explained in resizing for forms, the web, and print.

How Compress finds a size

Compress does not just pick one quality and hope. For each photo it tries a range of JPG qualities between 50% and 95% and keeps the highest one that still fits under your target. If no quality in that range fits at full size, it shrinks the photo to 80% of its width and height and searches again, and repeats that a few times if needed. It stops before the photo becomes a thumbnail. When it has to give up, the note on that file says the target was not reached rather than handing you a ruined picture.

A few other behaviors are worth knowing:

Two worked examples

For both, I used the same 8.8-megapixel photo (2,179 by 4,032 pixels), which started as a 2.5 MB JPG.

Under 200 KB

With the 200 KB chip, Compress could not reach 200 KB at full size even at its lowest quality, so it scaled the photo down. The result was about 200 KB at 1,116 by 2,064 pixels, with a note saying the photo was scaled down to fit. That is still plenty of pixels for a form, a document, or a phone screen, and it looks clean because the quality stayed reasonable.

Under 100 KB

With the 100 KB chip, the result was about 99 KB at 893 by 1,652 pixels. Again it was scaled. For an ID-style photo that a portal will display at a few hundred pixels, that is more than enough. Trying to keep all 8.8 megapixels at 100 KB would have meant a quality so low the photo turned into blocks.

The lesson from both: for small targets, it is the pixel count that has to give, not just the quality. That is normal and it is the better-looking choice.

Why a form can reject a file that says 200 KB

Here is a trap that catches people. There are two common definitions of a kilobyte. PicKept, like Windows, counts 1 KB as 1,024 bytes, so a 200 KB target means up to 204,800 bytes. Many websites count 1 KB as 1,000 bytes, so “200 KB” to them means 200,000 bytes.

In the 200 KB example above, the file came out at 204,537 bytes. PicKept and Windows both call that “200 KB.” A form that counts in thousands sees “204.5 KB” and rejects it.

The fix is simple: aim a little under. If a form says 200 KB and refuses the file, type 190 in the custom field and run it again. For 100 KB, use 95. That covers either definition.

More limits you will meet

A school portal: “JPG, under 100 KB, passport style”

Take the photo against a plain wall, which compresses well. Convert it from HEIC if needed, crop it to the head and shoulders in your phone’s editor, then compress to 95 KB. Cropping first matters: removing background you do not need is free size savings.

A job application: “each file under 2 MB”

A scanned certificate or a photo of a document is usually 3 to 6 MB from a phone. The 1 MB chip will almost always do it without scaling, and text stays readable at that size. If the document will be read on screen, that is fine. If it will be printed, keep the original too.

Email: a dozen photos to a relative

Most email services cap a message at roughly 20 to 25 MB in total. Twelve phone photos at 3 to 4 MB each will not fit. Compress all twelve to 1 MB each in one batch, then attach the zip, or the individual files, to one email.

A marketplace listing: “max 500 KB per image”

Listings show photos at modest sizes. Use the 500 KB chip, or resize to 1,600 pixels on the long side first for an even crisper result at that size.

What not to do

The short version

Use Compress for KB limits and Resize for pixel limits. Expect small targets to reduce the pixel size, because that keeps the photo looking good. If a form rejects a file that looks like it is right at the limit, aim about 5% lower. Always compress from the original, once.

Try it: Compress. Photos stay in your browser.