PortImg Insights

How to Reduce Image File Size: Resize First, Then Compress

Date
Updated
Read time3 min read
How to Reduce Image File Size: Resize First, Then Compress

We compressed a 990 KB photo, a screenshot and a logo at different settings. Why resizing beats low quality, and how to hit a target like 50 KB.

Images are usually the heaviest part of a web page and the reason an email attachment or a form upload is refused. There are only a few ways to make an image file smaller, and they are not equally good. We ran a photo, a screenshot and a logo through our Compress Image tool at different settings to show which one to reach for.

The three levers

  1. Fewer pixels: resize the image to the size it will actually be shown or printed.
  2. Stronger compression: a lower quality setting throws away more fine detail.
  3. A better format: WebP or JPG for photos, PNG for flat graphics.

What each setting did to a photo

Our test photo was 3000 × 2000 pixels and 990 KB as a JPG. Compress Image re-encodes it in your browser:

SettingResult
Quality 75 (the default)569 KB
Quality 50310 KB
Target 100 KB94 KB, which needed quality 19
Target 50 KB49 KB, which needed quality 11
Target 20 KBNot reachable at this size: 39 KB even at the lowest quality
Maximum width 1280, quality 7590 KB, 1280 × 853 pixels

The last two rows are the lesson. Squeezing a full-size photo to 50 KB needed quality 11, which leaves visible blocks and smeared detail. Simply resizing it to 1280 pixels wide, still plenty for a web page or a phone screen, brought it under 100 KB at the default quality 75, where it still looks clean. Resize first, then compress.

Screenshots and logos

Compress Image turns PNGs into WebP, which keeps transparency and is usually much smaller (in Safari, which cannot save WebP, it makes a JPG instead). Our 1920 × 1080 screenshot went from 377 KB to 186 KB at quality 75, and an 800 × 800 logo from 38 KB to 12 KB. The screenshot could not reach 50 KB at full size, because text and sharp edges need detail; resized to 1280 wide it was 98 KB. If a site needs PNG specifically, keep the PNG and resize it instead.

Hitting a size limit

Application forms often ask for a photo under 50 KB or a signature under 20 KB. Choose the target in Compress Image and it searches for the highest quality that fits. If it says the target cannot be reached, choose a smaller maximum width and try again; for photos that must also have exact pixel dimensions, resize to those dimensions first with Resize Image. The tool never hands back a file bigger than the one you gave it.

Good starting points

  • Photos on a web page: about 1200 to 1600 pixels wide, quality 70 to 80, as WebP or JPG.
  • Full-width hero images: about 1920 pixels wide.
  • Email attachments: 1600 to 2000 pixels on the long side is plenty to view and to print small.
  • Logos and icons: PNG or SVG at the size shown; for your own website, WebP.

Things that do not shrink files

  • Converting a JPG to PNG makes photos several times bigger, not smaller.
  • Changing the DPI number changes print size, not file size.
  • Compressing an already heavily compressed JPG again saves little and costs quality.

Compress Image runs entirely in your browser: nothing is uploaded. Each image is drawn fresh before it is saved, so the camera details and location stored in photos are not copied, unless the tool keeps your original because it could not make it smaller. For many files at once, see converting or compressing images in batches.

Written and tested by the PortImg team: the figures in this guide come from running files through our own tools. How we test

Image ToolsPDFTutorial
Found this helpful?

Try PortImg's free tools

Convert, compress, and edit images and PDFs — no sign-up needed.

Explore tools