DEV Community

Cover image for What a 100 KB Image Limit Really Means
Pocket PDF
Pocket PDF

Posted on Originally published at pocketpdf-notes.pages.dev AI-assisted

What a 100 KB Image Limit Really Means

A 100 KB upload limit sounds like a compression problem.

Most of the time, it is a dimensions problem.

Take a 4,000-pixel photo and force it into 100 KB. The result can look more like a watercolour painting than a photograph.

Resize the same photo to 1,200 pixels first, and it can still look sharp while fitting comfortably under the limit.

The order of operations matters more than repeatedly dragging the quality slider down.

Image dimensions worth starting with

Before compressing anything, consider how large the image will actually appear.

Use Longest edge
Web page or form image 1,200–1,600 px
Thumbnail 400–600 px
Full-width hero on a high-density screen Up to 2,000 px (WebP is a better bet at 100 KB)

These are starting points, not universal requirements.

If the image is displayed at 400 pixels wide, uploading a 4,000-pixel original is often unnecessary.

There is another common mistake: trying to compress a photographic PNG.

A PNG photo is often several times larger than a good JPEG. Convert a copy to JPG before compressing it if the destination accepts JPG.

A workable compression workflow

Use this order when dealing with a strict upload limit:

  1. Crop to the useful area. A full-screen screenshot with 70% empty space is wasting pixels.
  2. Resize to the displayed dimensions. Keep only as many pixels as the recipient needs.
  3. Choose the format. JPG for photographs, PNG for screenshots and graphics containing text, WebP where the destination accepts it.
  4. Start JPEG quality around 80–85. Reduce it in small increments if necessary.
  5. Inspect at 100% zoom. A thumbnail can hide compression artefacts.
  6. Check the pixel limit too. Some upload forms enforce dimensions as well as file size.

For screenshots containing text, avoid JPG unless the form forces you to use it.

JPEG compression introduces halos and artefacts around sharp text. The result can look worse without necessarily being smaller than a properly optimised PNG.

A 100 KB maximum is not a 100 KB target

There is a difference between a maximum and a target.

A maximum is a hard limit. A target is a preferred size.

If an upload form rejects anything above 100 KB, aiming for exactly 100 KB leaves very little room for rounding or additional re-encoding.

Aim for 80–90 KB instead.

That gives you some breathing room without unnecessarily sacrificing image quality.

Which workflow makes sense?

Different images need different treatment.

  • Profile photo or form upload: Resize to the displayed dimensions, then compress.
  • Screenshot containing text: Crop, keep PNG and only convert if the limit forces you to.
  • Product photo: Resize to the marketplace's recommended dimensions first. Many platforms re-encode uploaded images anyway.
  • Scanned document: A full-page scan at 100 KB is usually unreadable. If the form demands it, scan at a lower resolution and in grayscale, then check legibility.

The scanned-document case deserves particular attention. A photograph and a page of small printed text do not tolerate the same compression settings.

Getting under the limit is pointless if the recipient cannot read the document.

Limits

This is workflow guidance, not a controlled image-compression test.

The pixel ranges are rules of thumb from our guide. Actual results depend on image content, format, encoder and quality settings.

The reproducible part is the order: dimensions first, format second, quality last, then inspect the result.

Disclosure: Some AI assistance was used in preparing this article.
Originally published at https://pocketpdf-notes.pages.dev/what-a-100kb-limit-really-means/

Top comments (1)

Collapse
 
pocketpdf profile image
Pocket PDF •

The main thing is to resize before touching the quality slider. One caveat: if the image contains small text or sharp UI details, JPG compression can make it harder to read, so PNG may still be the better choice.