Image Optimization • 8 min read

Photo Too Large to Upload? Fix It for Portals Step by Step

When an application form says the file is too large, it is usually right about one specific limit and silent about which. Find the limit first, then work through the steps in an order that does not make the picture worse than it has to be.

Find Out Which Limit You Actually Hit

Upload forms enforce four different things and the wording is rarely precise enough to tell them apart. A file size limit is bytes, usually stated in KB or MB. A dimension limit is pixels, sometimes stated as a maximum width and height, sometimes as an exact size. A shape limit is an aspect ratio, which is what makes a portrait rejected for wanting a square. A format limit is the file type, and the error message for that one often still says size.

The fastest way to identify it is to look at what the form tells you to upload, not at the file. A field label reading max 200 KB is bytes. One reading 600 x 600 px is pixels. A square upload box that will not accept a landscape crop is shape. A drop zone that greys out a HEIC or PNG is format.

The four upload limits, how each one shows up and which step fixes it
LimitTypical wordingThe step that fixes it
File size in bytestoo large, max 200 KB, size exceeds limitCompress to a KB ceiling
Pixel dimensionsresolution too low or too high, 600 x 600 requiredResize to the exact pixel size
Aspect ratiophoto must be square, landscape not acceptedCrop to the ratio first
File typeunsupported format, jpg onlyConvert the container

Note: Some forms enforce a minimum as well as a maximum, most often on a passport-style photo where an empty-looking scan is a fraud signal. If the file is rejected for being too small, use a higher quality setting or a larger canvas rather than re-uploading the same file.

How the Byte Ceiling Gets Hit

The compressor here does not have a quality slider you guess with. You give it a ceiling and it searches for the best result that fits underneath it, which is why the pages for this tool publish byte counts instead of promises.

The steps are worth knowing because they explain the two behaviours people find surprising. Anything already at or under the target is returned untouched, with no second encode and no additional loss. That is why the 1 MB page can report a 910,460-byte PNG coming back unchanged: the file already complied, so re-encoding it would only have cost quality. The measured run on that same page takes a different file down to 162,229 bytes at quality 95 percent, and 95 is the cap: the engine will not push quality past it, so an output can land far below the ceiling when the image compresses easily.

When quality alone cannot reach the target, dimensions come down in 10 percent steps, with a floor at 200 pixels on the shorter side, and quality is re-searched at each size. A file that has been resized this way shows the new dimensions on the result, which is the number to check against a form that specified pixels as well as bytes.

The published runs on the preset pages are reproducible on the sample files rather than hand-picked: the 20 KB page reports 20,156 bytes at quality 35 percent on a 903 x 504 result, the 300 KB page reports 303,982 bytes with 3,218 bytes of headroom at quality 68 percent, and the 500 KB page reports 322,709 bytes at the 95 percent cap.

  • The search aims at 99 percent of the ceiling, so a file that lands on the limit in the preview will not fail a strict over-the-wire check.
  • JPEG is the default output for photos; transparency is composited onto white, so a PNG logo with a clear background loses it.
  • WebP is offered alongside JPEG, and on the measured runs it is usually smaller at an equivalent quality, which matters when a portal accepts it.
  • Files larger than 4096 pixels on either side are clamped to that maximum before the search starts.

Do the Steps in an Order That Survives the Form

The order matters more than the tools. Each step that re-encodes the image throws away information the next step would have used, so the sequence below does exactly one lossy encode at the end.

  1. Crop to the required shape — Use the aspect ratio cropper with the frame the form asks for: 1:1 for most application photographs, 3:4 or 4:5 for a few, and the exact millimetre paper size for a passport submission. Cropping last means cutting composition out of an image you already degraded.
  2. Resize to the required pixels — If the form names a pixel size, hit it before thinking about bytes. If it names a physical size such as 35 x 45 mm, convert through a density first, because millimetres only become pixels via DPI, and a 300 DPI assumption is what most of those forms carry.
  3. Convert the format if the portal is fussy — JPEG is the safest assumption for a photo. Convert from PNG, HEIC or WebP now rather than after compression, because a second container change after a quality pass costs more detail.
  4. Compress to the byte ceiling — Only now pick the KB target and let the search run. Download the file and look at the reported byte count and dimensions before you upload, so the number you submit matches the number the form expects.
  5. Strip the metadata — An application photo usually carries the GPS coordinates of wherever it was taken, the camera model and a timestamp. A canvas re-encode drops that information by construction, so this step costs nothing if you have already compressed the file. Do it anyway and check, rather than assuming.

Note: If the form rejects the file after all of this, the remaining candidates are a minimum size, a required face proportion the software measures, or a stated DPI tag the file does not carry. The first two are the form's judgement; the third is a metadata field you can set without touching a single pixel.

When the Portal Wants a Document, Not an Image

Plenty of application systems accept only PDF for a supporting document but still describe the rejection in terms of size, which sends people looking for a photo compressor when the answer is a document workflow. A photograph on a page, exported as a one-page PDF, is normally smaller than the image plus its metadata, and it cannot be silently re-encoded by the portal in the way an uploaded JPEG sometimes is.

The route is images to PDF first, then the PDF compressor if the result still exceeds the limit. PDF compression works on the embedded streams rather than the pixels, so it can shrink a document whose photographs were already acceptable without touching their resolution.

Why This Is Worth Doing on Your Own Machine

The file you are shrinking is usually the one thing a portal asks you not to alter: your face, or a scan of an identity document, or a signature page. Every tool in this workflow reads the file into the tab and writes it back out of the tab. There is no upload step, no queue, and no copy retained on a server, which also means nothing is waiting on someone else's infrastructure to be deleted later.

It has a practical benefit besides tidiness. An upload that bounces off a size limit becomes an instant retry instead of a round trip, and the byte count, dimensions and quality the compressor reports are visible before you submit, so you can correct the file and the form field together.

Limits Worth Knowing Before You Trust the Output

The engine is deliberately conservative and that has consequences you should predict rather than discover.

It will not invent detail. A 640 x 480 photo cannot be made into a sharp 1200 x 1600 one by resizing, and no tool here will pretend otherwise. Where a form demands more pixels than you have, the honest options are a better source photograph or a conversation with the body that set the requirement.

It stops at the quality cap. A file that reaches 95 percent and is still under the ceiling is returned at that setting rather than padded upwards, so a 500 KB target can produce a 320 KB output. That is the engine preferring fidelity over filling the budget.

It leaves compliant files alone. Anything already at or below the target is handed back unchanged, which is the correct behaviour for quality and the confusing behaviour for someone who expected a smaller file.

And it measures bytes, not judgement. A heavily compressed photo can pass every automated check and still look bad on a screen, so open the result at full size before attaching it to the thing you are actually applying for.

Questions About Upload Limits and Photo Size

Why does my phone photo get rejected when it looks fine?

A phone photograph is typically several million pixels and several million bytes, and it carries the exact dimensions the camera sensor produced. Portals are usually written against a maximum file size in the low hundreds of kilobytes, so an image that is perfectly good is simply two orders of magnitude larger than the field allows.

Does compressing a photo to 100 KB ruin it?

At the sizes forms ask for, no. A 600 x 600 application photograph holds very little information, and reaching 100 KB from a much larger original is usually done by raising quality as high as the ceiling allows rather than by squeezing a large image hard. Where it does hurt is on detailed textures such as hair or fabric, so check the result at full size before you submit.

The form asks for an exact size in KB. Why is my file slightly under?

Because a ceiling is safer than a target. This engine searches against 99 percent of the stated limit, so a file lands under it with headroom instead of landing on it and failing a strict comparison. A portal asking for under 200 KB accepts 197 KB without hesitation.

Do I still need to remove EXIF data after compressing?

A browser canvas re-encode produces a fresh file without the original metadata, so compression normally clears location data as a side effect. Verify it rather than assuming, because a file that was already small enough to be returned unchanged keeps everything it started with, including GPS coordinates.

What if the portal wants a passport photo in millimetres?

Then the requirement is a physical print size plus a density, and you convert to pixels before you resize. At 300 DPI a 35 x 45 mm photo is about 413 x 531 pixels. Different issuing bodies publish different numbers, so use the figure on the form rather than a general rule.

Is it safe to upload my ID document to a compression site?

Not on a site that takes the upload, and that is the whole reason these tools work locally. Files stay in the page's memory and are dropped when the tab closes, so an identity scan never becomes somebody else's stored asset.

Keep Reading

Three guides that pick up where this one leaves off: