What is image optimization?

Image optimization is preparing website images so they look sharp at the size they’re shown while using as few bytes as possible, through resizing, compression and modern formats.

Want to know where your site stands on image optimization?

I’ll test your site on a real mid-range phone profile and send you the two or three fixes that matter most, free.

No newsletter. Just what you asked for, from me. Privacy

In plain English

A phone photo might be 4,000 pixels wide and several megabytes. On a website it’s rarely shown wider than 1,600 pixels, and on a phone often under 500. Optimization means producing versions sized for each screen, compressing them sensibly and serving a format like WebP or AVIF.

The srcset attribute lets the browser choose the right size. Width and height attributes reserve space so the layout doesn’t jump.

Why it matters for a small business

Images are usually the heaviest part of a small business site, and the hero image is often the element that decides LCP. Getting them right is the single biggest speed win for most sites, and it costs nothing in visual quality when done properly.

An example

A Lethbridge custom home builder uploads 40 project photos straight from the photographer, each around 8 MB. Generating three sizes of each in WebP, with the browser picking per screen, takes the gallery page from unusable on mobile to quick, and the photos look the same.

Common mistakes

Where I see image optimization go wrong most often.

  1. Uploading originals and relying on CSS to shrink them, so phones download the full file anyway.

  2. Over-compressing hero photos until skin tones and skies show visible banding.

  3. Using PNG for photographs, which produces files many times larger than needed.

FAQ

Image optimization, answered

  1. It depends on how wide they display. A full-width hero might need around 1,600 to 2,000 pixels for large screens, with smaller versions served to phones.

  2. Sensible compression is invisible to most people. Push it too far and you’ll see blur and banding, so check the important images by eye.

Keep reading

Let’s begin

Let’s build something you’re proud to share.

Let’s Talk