A responsive page crops the same image differently at each breakpoint: wide on desktop, square on tablet, tall on mobile, and the subject can be cut off at one size while it survives at the others. MDN documents that the img element supports srcset and sizes, which let the browser select the right image source for the viewport, and that width and height attributes reserve the aspect ratio and reduce layout shift. Check the image at every breakpoint before the page goes live, because one breakpoint is enough to ruin it.
What you need
- The AI-generated image
- The list of breakpoints the page uses, for example desktop, tablet and mobile
- A way to preview the page at each breakpoint
Step 1: List the crop at each breakpoint
For each breakpoint, write down the crop the page applies to the image: the aspect ratio, the focal point, and the size it is shown at. Note which breakpoints crop the image hardest.
Step 2: View the image at each breakpoint
Preview the page at each breakpoint and look at the image. Confirm the subject is whole, the face is not cut, and any text in the image is still readable at that size.
Step 3: Adjust the focal point or provide a mobile crop
If the subject is cut at a breakpoint, move the focal point, or provide a separate crop for that breakpoint using srcset and sizes. Re-check every breakpoint after the fix.
Worked example: synthetic breakpoint check of one hero image
The table below is a synthetic example. It shows the expected result of checking one hero image at three breakpoints; no page went live.
| Breakpoint | Crop | Subject | Verdict |
|---|---|---|---|
| Desktop 1440 px | Wide 16:9 | Whole | Pass |
| Tablet 768 px | Square 1:1 | Whole | Pass |
| Mobile 375 px | Tall 9:16 | Face cut | Fail |
Expected result (UNTESTED). the desktop and tablet crops pass, and the mobile crop cuts the face, so a separate mobile crop or a different focal point is needed before the page goes live. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- A breakpoint that passes on one device can fail on another of the same width, so test the main devices your readers use.
- A focal point fixes the crop only if the page uses it; check the page code, not only the image.
- Providing a separate mobile crop means two images to keep in step, so label both clearly.
- Text baked into an image cannot reflow at a breakpoint, so keep the headline as live text where possible.
