Properly size images

Match image candidates to the displayed slot and device density, then verify the browser selected a suitable file.

A small card that downloads the original camera image is wasting bandwidth even if the file uses a modern format. When Sitepulse flags oversized images, use DevTools to match the page's image requests to the elements displaying them. The goal is to send enough detail for that element and screen, without making every visitor download the largest available version.

Compare the selected image with its display slot

Inspect the image's rendered width and height, its intrinsic dimensions and the browser's chosen source. Device pixel ratio matters: a 320 CSS-pixel slot on a 2x screen may need roughly 640 source pixels for matching detail. That does not mean every slot should receive a full-resolution upload.

Check the image after layout has settled and at more than one viewport. A resource appropriate for a wide banner may be excessive for the mobile version of the same page. Newer reports can include this finding under image-delivery insights rather than the older audit title.

Describe the real layout to the browser

Generate several useful widths, then provide candidates through srcset and describe the element's layout width with sizes. The sizes value must match the actual component: declaring a full viewport width for a small card can make the browser choose a larger candidate than necessary.

<img
  src="/images/case-study-800.webp"
  srcset="/images/case-study-400.webp 400w,
          /images/case-study-800.webp 800w,
          /images/case-study-1200.webp 1200w"
  sizes="(min-width: 60rem) 32rem, calc(100vw - 2rem)"
  width="1200" height="800"
  alt="Completed workshop interior">

This example assumes the element really occupies 32rem on a wide layout and the viewport minus 2rem on a narrow one. Adapt that description to the component instead of copying it unchanged. Width and height also let the browser reserve the correct aspect ratio.

Fix the shared image output

Make the change in the card, gallery or media template responsible for the output. Confirm generated variants actually exist and that an image service or CDN does not ignore the requested width. Keep appropriate crops for different art direction separate from merely requesting fewer pixels of the same crop.

Check which source is downloaded

Use fresh browser sessions at representative widths to inspect the selected resource. Browsers can retain a larger candidate already downloaded, so resizing one warm tab is not a complete verification. Test a high-resolution screen and check fine detail as well as transfer size.

Repeat the same Sitepulse check after release, and verify that images keep their intended dimensions while loading. Image-sizing and format-conversion estimates can overlap. Evaluate the delivered result alongside format choice and loading priority.

Technical references