October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk6 min

The Complete Guide to Image Optimisation for Websites in 2026

A practical workflow for responsive image sizing, format and compression choices, layout stability, LCP priorities, and performance checks.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To make website images load faster without sacrificing visible quality, serve an image close to the size the page displays, choose a format and compression level suited to the image, reserve its layout space, and load the most important image first. Then measure the page: reducing image bytes helps only if image transfer is the bottleneck.

How do you serve large, good-looking images without huge file sizes?

Think of image optimisation as a delivery workflow, not a single compression setting. Start with the rendered size, create suitable variants, compare formats and quality, then make sure the browser discovers and prioritises each image at the right time.

As an Amazon Associate I earn from qualifying purchases.

  1. Size for the layout. Avoid sending one oversized desktop image to every screen. Provide a manageable set of responsive candidates.
  2. Choose format and compression per image. Compare the resulting bytes and visual quality for photographs, graphics, screenshots, and images containing text.
  3. Reserve the image’s space. Give the browser dimensions or an aspect ratio before the image loads.
  4. Prioritise the likely Largest Contentful Paint (LCP) image. Make it discoverable in initial HTML; use lazy loading for images below the fold.
  5. Measure the result. Check the actual LCP element and its request rather than assuming a smaller file automatically makes the page faster.

How should you size images for different screens?

Use responsive image candidates so the browser can choose an asset appropriate to the available image slot and the display’s pixel density. With width descriptors in srcset, include sizes to describe how much layout width the image is expected to occupy. The browser can then select an appropriate candidate instead of downloading a single unnecessarily large source.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
<img
  src="photo-800.jpg"
  srcset="photo-400.jpg 400w, photo-800.jpg 800w, photo-1200.jpg 1200w"
  sizes="(max-width: 600px) 100vw, 800px"
  width="1200"
  height="800"
  alt="Description of the image">

The example’s sizes value describes a full-viewport slot up to 600 pixels wide and an 800-pixel slot above that; adapt it to the actual layout. Generate enough candidates to serve common display sizes, but avoid an unwieldy list of near-duplicates. A large hero image and a small thumbnail need different candidate sets, so check real page results.

Use art direction when the crop changes

srcset is useful when the same image can be delivered at different resolutions. If the composition itself should change—for example, a tighter crop on a narrow screen—use <picture> with media-specific sources and an <img> fallback. This lets the page select a different crop as well as a different size.

Which image format and compression should you use?

There is no universally best format or quality setting. AVIF and WebP can produce smaller files than older formats, but the saving depends on the image and encoding choices. Compare outputs for the actual asset: detailed photographs often tolerate lossy compression well, while sharp edges, line art, screenshots, and embedded text can reveal artifacts quickly. Use lossless compression when preserving pixel data matters.

When offering AVIF or WebP alternatives, use typed <source> entries in <picture> and keep an <img> fallback. Check the current browser mix of your audience before relying on a format without a fallback; support can change, and a format’s theoretical efficiency does not ensure a better-looking result.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
<picture>
  <source srcset="photo.avif" type="image/avif">
  <source srcset="photo.webp" type="image/webp">
  <img src="photo.jpg" width="1200" height="800" alt="Description of the image">
</picture>

Compress and inspect rather than applying one quality value across a library. Squoosh and ImageOptim are tools named in web.dev’s image performance guidance; a build-time process or hosted image service can also automate transformations. For each representative asset, compare file size and inspect important details at a realistic display size.

Some often-repeated figures are historical rather than universal targets. A 2018 web.dev article reported WebP files about 25–35% smaller than JPEG and PNG counterparts in its general comparison, and cited a 10% faster page-load result for YouTube thumbnails after a WebP switch. Those figures describe that article and case study, not a guaranteed saving or speedup for a modern site. Current format results should be checked on your own images.

How do you prevent image-related layout shifts?

Set intrinsic width and height attributes on images, or reserve the correct aspect ratio in CSS. The browser can use that information to allocate space before the file arrives. Without reserved space, a late-loading image can move surrounding content and contribute to layout shifts.

Use the image’s actual aspect ratio for the dimensions or CSS reservation. If responsive crops change that ratio, make sure the reserved space reflects the selected presentation rather than an unrelated source size.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How should you load the LCP image and images below the fold?

First identify the page’s actual LCP element and inspect its network request. If it is an image, ensure the browser can discover it from the initial HTML. An image inserted only after JavaScript runs, or one hidden behind delayed discovery, may start loading too late.

  • Likely LCP image: Do not add loading="lazy". Consider fetchpriority="high" when this is genuinely the image most likely to determine LCP; avoid assigning high priority to many images.
  • Below-the-fold image: Native loading="lazy" can defer its download until it is closer to the viewport.

The Google Chrome team’s web.dev LCP guidance states: “Never lazy-load your LCP image, as that will always lead to unnecessary resource load delay, and will have a negative impact on LCP.”

LCP timing has four parts: time to first byte (TTFB), resource load delay, resource load duration, and element render delay. The guidance gives approximate proportions—about 40% for TTFB, under 10% for resource load delay, about 40% for resource load duration, and under 10% for element render delay—as guidelines, not strict targets. Smaller image files primarily address resource load duration. They will not fix late discovery, slow server response, or a rendering delay after the image has downloaded.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

How do you choose an image-optimisation workflow?

Self-managed compression and hosted image services are both viable. The right choice depends on how much control the team needs, how images enter the site, and the effort required to maintain transformations and delivery.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Approach Control Automation and integration Operational considerations
Self-managed, manual or build-time compression Direct control over output, quality, crops, and generated variants. Can be integrated into a build or publishing pipeline; automation depends on the chosen tools and setup. Requires the team to generate, inspect, and maintain assets and responsive candidates.
Hosted image service or CDN Transformations and output depend on the service’s capabilities and configuration. May automate resizing, format negotiation, and delivery based on browser or device capabilities. Consider integration, inspectability, operational dependence, and ongoing service cost for the library and traffic.

web.dev describes image CDNs as able to select formats and deliver images according to browser and device capabilities. Compare the actual controls and workflow offered by any service with your requirements; a hosted option is not automatically simpler if it complicates publishing or makes output harder to inspect.

How do you verify that optimisation improved the page?

  1. Inspect the image request. In browser developer tools, confirm which candidate and format loaded, its transfer size, and when the request began.
  2. Check responsive choices. Test representative viewport widths and display densities to ensure the selected image suits the slot rather than routinely downloading a much larger candidate.
  3. Review visual quality. Look for artifacts around text, edges, and fine detail, as well as unwanted crop changes.
  4. Check layout stability. Confirm image space is reserved and the page does not shift as assets arrive.
  5. Measure LCP in lab and field data. Verify the LCP element and determine whether transfer duration, discovery, TTFB, or rendering is the limiting part.

Interpret the measurements in context: a smaller image can reduce transfer time, but it is not proof of a faster LCP. If the image request starts late or the element renders late, address that bottleneck as well.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.