Skip to content
Image Editing & Retouching

Responsive Image Delivery, Done Properly

Serving the right image file for the device, viewport and pixel density that requested it.

Imogen Clarke Imaging & 3D Lead 2 min read 23 views
Responsive Image Delivery, Done Properly

At a glance

  • srcset offers the browser several files to choose from
  • sizes tells the browser how large the image will be displayed
  • picture element for art direction and format fallbacks
  • Device pixel ratio high-density screens need more pixels for the same size
  • Dimensions width and height still required, to prevent layout shift

Why it matters

Why it matters: A single large image sent to every device wastes bandwidth on phones and looks soft on high-density screens, and the markup to fix it is well specified.

Best practice

  • Generate the set of sizes the layout actually uses
  • Always provide sizes alongside srcset, or the browser guesses badly
  • Use picture when the crop changes between breakpoints
  • Offer modern formats with a fallback through picture
  • Set intrinsic dimensions on every image
What to do and what to avoid with responsive image delivery, side by side
Good practice against the usual mistakes, from the sources listed below.

Common pitfalls

Watch out for:

  • One image file for every breakpoint and density
  • srcset without sizes
  • Art-direction crops done with CSS object-fit where the subject gets cut
  • Generating dozens of variants nobody requests

When to call in a specialist

Bottom line Bring in help when image weight is failing Core Web Vitals, when a CMS is not generating usable variants, or when art direction is needed across breakpoints.

Where this comes from

The figures and practices above come from the sources listed.

Working on something like this?

We take on Image Editing & Retouching work for teams who want it done once, properly. Tell us what you are building and we will tell you honestly whether we are the right studio for it. Start a project.

Where to go next

Spotted something wrong? Report an error on this page. We correct on the page and say what changed.

All services

The work behind this article, and what it costs.

Imogen Clarke

Stills, retouching and real-time 3D. Writes about color management, asset pipelines and getting heavy visual work into a browser.

Keep reading

More in Image Editing & Retouching