Cartoon website team preparing large, medium and small responsive image versions for desktop, tablet and mobile screens

Responsive images work when the browser receives the right source candidates, an accurate display-size hint and reserved layout space. Generate a small set of useful widths, describe them with srcset, keep sizes aligned with the real layout, use <picture> only for format or art-direction choices, add intrinsic width and height, and test the actual file selected on representative devices.

Start with the image’s job in the layout

Do not begin by exporting every image at arbitrary widths. Record where each image appears and what it must communicate. A full-width hero, a product card, a portrait and a decorative background have different crop, sharpness and loading requirements.

For each component, define:

  • the maximum rendered width at each breakpoint;
  • whether the aspect ratio stays fixed;
  • whether mobile needs a different crop;
  • the smallest detail that must remain legible;
  • whether the image is visible on initial load;
  • its alt-text purpose or decorative status;
  • the content owner responsible for future replacements.

This component map prevents two common errors: sending a large desktop asset into a narrow card and creating dozens of variants that the layout never uses.

Use srcset for resolution switching

When the same composition works at every size, provide several widths through srcset. The browser combines those candidates with the sizes hint, viewport, pixel density and other conditions to choose a file. The MDN responsive images guide explains the selection process and the difference between width and pixel-density descriptors.

A practical candidate set follows the actual component widths rather than every device width. A card that renders at roughly 320, 480 and 640 CSS pixels needs candidates around those slots, with larger options for high-density screens where the visual benefit justifies the bytes. Keep a valid src fallback on the img element.

Make sizes describe the real slot

sizes does not describe the source file. It tells the browser how wide the rendered image slot will be before layout finishes. If the hint says 100vw while the component occupies half the page, the browser can download an unnecessarily large candidate.

Translate the CSS layout into ordered conditions. For example, a card can occupy the viewport minus gutters on mobile, half of a content container on tablet and one third of that container on desktop. Update the hint whenever the grid, maximum container width or breakpoint changes. Treat CSS and image markup as one component contract.

Use picture for art direction and format choices

The picture element is useful when the composition changes, not simply because multiple widths exist. A wide hero can show an environmental scene on desktop and a tighter subject crop on mobile. The MDN picture reference shows how the browser evaluates source elements and uses the nested img as the final fallback.

picture can also offer AVIF or WebP before a fallback format. Keep equivalent visual meaning across sources. Alternative formats are delivery options, not different content. Do not remove the nested img, its src, dimensions or alt text.

Reserve space before the image arrives

Add intrinsic width and height that reflect the source aspect ratio. The browser then reserves the correct space before the file loads, even when CSS scales the image responsively. The web.dev responsive images guidance connects explicit dimensions with preventing surrounding content from jumping during load.

When a component uses a controlled crop, pair a stable container ratio with object-fit and an intentional focal point. Check that faces, products and calls to action remain visible at every crop. A technically valid image that cuts off the subject is still a failed implementation.

Choose formats and quality by content

Photographs, transparent illustrations, screenshots and icons compress differently. Test representative files instead of applying one global quality setting. Modern formats reduce transfer size in many cases, while a well-encoded JPEG, PNG or SVG remains appropriate for specific content and fallback needs.

Inspect the result at its rendered size. Look for text blur in screenshots, ringing around sharp edges, banding in gradients and loss of product detail. Remove unnecessary metadata during the build pipeline, but retain rights or attribution information where the business process requires it.

Load the hero and below-the-fold images differently

Do not lazy-load the main above-the-fold image when it is the page’s Largest Contentful Paint candidate. Give the browser an early discoverable img, and use high fetch priority only for the genuinely important image. Competing high-priority assets dilute the signal.

Use native lazy loading for images below the fold. Keep dimensions on lazy images so scrolling remains stable. A carousel, hidden tab or modal needs separate testing because visibility logic can delay or trigger downloads in ways that a static page does not.

Keep images understandable and discoverable

Google Search Central recommends standard HTML image elements, a fallback src, supported formats and descriptive context in its image SEO best practices. It also explains that Google finds images in img, including an img nested inside picture, while CSS background images are not indexed in the same way.

Write alt text for the image’s function in that page context. Decorative images use empty alt text. Place meaningful images near relevant copy and use stable, descriptive filenames. Do not repeat keywords or describe visual details that add no value to a person who cannot see the image.

Build an image-generation pipeline

Manual exports drift as a website grows. Create a pipeline that accepts an approved master and generates the widths, formats and compression settings required by each component. It should reject undersized sources, preserve the intended crop, avoid uncontrolled upscaling and produce predictable URLs.

Connect the CMS to that pipeline. Editors should see required dimensions and focal-point controls instead of choosing from unexplained files. When a source image changes, invalidate or version derived assets without creating unstable URLs on every request.

Run a responsive image release test

  1. Inspect phone, tablet and desktop layouts at standard and high pixel density.
  2. Use browser developer tools to confirm the selected candidate and transferred bytes.
  3. Compare the declared sizes slot with the element’s rendered width.
  4. Test slow network and disabled cache conditions.
  5. Confirm that the hero is not lazy-loaded and below-the-fold media is deferred.
  6. Check reserved space, crop, focal point, sharpness and compression artefacts.
  7. Verify alt text, fallback src and image visibility without JavaScript.
  8. Check social preview and structured-data images separately from in-page variants.
  9. Measure the page again after real CMS content replaces test assets.

Repeat the test when the design system changes its grid, breakpoints, container widths or image components. A correct candidate set tied to an old layout becomes inefficient after a redesign.

How VOWE handles responsive images

Can VOWE include responsive image delivery in a website project?

VOWE can define image components, source sizes, crop rules, CMS fields, delivery markup and release checks as part of Website Development for the project. The implementation is based on the actual layouts and content types in use.

Which VOWE services support image performance after launch?

Website Maintenance supports asset-pipeline updates, performance checks and regression review. International SEO supports image discoverability, page context and multilingual consistency where images contribute to search visibility.

What should a business prepare before contacting VOWE?

Prepare the main page templates, current image library, CMS workflow, target devices, brand crop rules and any performance measurements already available. Send them through VOWE Contacts so the review starts from real layouts and content.