Image optimisation means delivering each picture in the right format, at the right size and at the right moment, so it looks good without slowing the page down. On most business websites, images are the heaviest part of every page. A photo straight from a phone camera can be many times larger than the space it fills on screen, and a visitor on mobile data pays for every extra byte in waiting time. That is why fixing images is often the quickest speed improvement a site can make.

Step one: choose the right format

Format Best for Things to know
JPEG Photographs Small files, no transparency; quality suffers if compressed too hard
PNG Logos, screenshots, images that need a transparent background Crisp edges, but photos saved as PNG become very large
WebP Photos and graphics on modern sites Usually smaller than JPEG or PNG at similar quality; supported by current browsers
AVIF Photos where every byte counts Often smaller still; newer, so check that your platform handles it
SVG Logos, icons and simple illustrations Drawn from code, so it stays sharp at any size; not for photos

A sensible default: SVG for your logo and icons, and WebP for photos, with a JPEG fallback if your platform provides one. Many content management systems and image plugins can convert uploads to WebP for you.

Step two: resize before you upload

"Size" has two meanings, and both matter.

Dimensions are the width and height in pixels. If a product image is shown in a box a few hundred pixels wide, uploading a photo several thousand pixels wide wastes data. Resize to roughly the largest size the image will ever be displayed, with a little extra for sharp phone screens.

File size is how much data the image weighs. After resizing, compress it. Most photos can lose a surprising amount of weight before anyone notices a difference. Compare the original and compressed versions side by side on a phone, and stop at the point where you can see the quality drop.

It is best to do this before upload, with a simple image editor or a free online compressor, so heavy originals never reach the server. If your team uploads many products, a developer can set up the website to resize and compress images automatically.

Step three: serve different sizes to different screens

A phone does not need the same image as a wide desktop monitor. A website can offer several versions of each image and let the browser pick the one that suits the screen. This is called responsive images. WordPress and many modern platforms create several sizes when you upload, but your theme has to use them properly. On a custom site, ask your developer whether responsive images are in place.

Step four: lazy load what is further down

Lazy loading means an image is downloaded only when the visitor scrolls close to it. A long product list or gallery opens quickly, because the browser does not fetch pictures the visitor may never reach. Modern browsers support this with a simple setting in the code, and many platforms switch it on by default.

There is one important exception. Do not lazy load the main image at the top of the page, such as the banner or the first product photo. That image should load as early as possible; delaying it makes the page feel slower and can hurt the loading measures Google looks at. Core Web Vitals explained covers those measures in plain words.

Step five: stop the page from jumping

When an image arrives and the page did not know its size in advance, the text below suddenly jumps down. Visitors lose their place or tap the wrong button. The fix is to tell the browser each image's width and height, or its proportions, in the code, so space is reserved before the image loads. Good themes do this automatically, but it is worth checking on a slow connection.

A quick checklist for your site

  • Logos and icons in SVG where possible.
  • Photos in WebP or well-compressed JPEG.
  • No image uploaded much larger than its biggest display size.
  • Responsive image sizes generated and actually used by your theme.
  • Lazy loading on images further down the page, but not on the top one.
  • Width and height set, so nothing jumps while loading.
  • Tested on a phone using mobile data, not only on office Wi-Fi.

Optimisation is about speed. Helping images appear in Google Images is a related but separate job, covered in image SEO, which deals with file names and alt text. If your site is still slow once images are under control, the slow website fix walks through the other usual causes, such as plugins, hosting and caching. And if you would like your images and page speed reviewed, you can ask through my web development service.

Related service Software and website development Fast, search-ready websites, custom WordPress plugins, web apps and SaaS products, built and hosted properly.