Sub topic 16
A review checklist
This chapter assumes you know the img and picture elements, basic CSS, and how breakpoints work. It also assumes you have read the earlier chapters on licensing, cropping, srcset, and alt text. Here you combine those checks into one review you can run before a page ships.
Why review as a separate step
Image problems rarely show up while you build. A crop that looks right on your laptop can cut off a face on a phone. A 3 MB hero image feels fine on office Wi-Fi. A missing width attribute only causes trouble on a slow connection. A fixed checklist makes you test these cases on purpose.
The checklist
Run the checks in this order. Early items are cheap to fix, and later items depend on them.
| Area | Question | How to check |
|---|---|---|
| Purpose | Does the photo support the message of the page? | Cover the text. The image should still hint at the topic. |
| Rights | Do you have a license, and consent from recognizable people? | Find the license record or release in your asset notes. |
| Crop | Is the subject visible at every breakpoint? | Resize the window from 320px to 1600px. |
| Text overlay | Is overlaid text readable against the photo? | Check contrast where the text sits, at each width. |
| Size | Does the browser download the smallest file that looks sharp? | Open the Network panel and compare file size to display size. |
| Format | Is the format and compression suitable for the content? | Check that the file is not larger than it needs to be. |
| Layout | Does the page stay still while images load? | Throttle the network and watch for jumps. |
| Alt text | Does the alt text give the same information as the image? | Read the alt text without looking at the image. |
Following the workflow
Fix problems at the earliest step that causes them. If the license is missing, do not bother tuning the crop.
Example: one image, reviewed
This hero image fails three checks. It has no dimensions, no sizes, and an alt text that only says "photo".
<img src="team.jpg" srcset="team-400.jpg 400w, team-1600.jpg 1600w" alt="photo">After the review, the same image looks like this:
<img
src="team-800.jpg"
srcset="team-400.jpg 400w, team-800.jpg 800w, team-1600.jpg 1600w"
sizes="(min-width: 960px) 50vw, 100vw"
width="800" height="600"
alt="Four colleagues around a whiteboard">Each fix maps to a row in the table. sizes fixes the size check. width and height fix the layout check. The new alt text fixes the alt text check.
Making the review routine
- Keep a short licensing note for every image, even free ones.
- Review at the start of a project and again before launch, because content changes.
- Treat a failed check as a bug and record it like one.
- Reuse the same table for every page so results are comparable.
Exercise
A reviewer finds that the page jumps down when a hero image loads, and that the image is 2400px wide but shows at 600px. Which two checklist areas failed, and what is one fix for each?
Show answer
The Layout area failed: add width and height attributes (or a CSS aspect-ratio) so the browser reserves space before the file loads. The Size area failed: add srcset with smaller files and a sizes attribute so the browser downloads a file close to 600px wide instead of 2400px.