Sub topic 16
A review checklist
This chapter assumes you know the img element and its attributes, basic CSS, and how breakpoints work in a responsive layout. It also assumes you have read the earlier chapters on selecting, cropping, and delivering photos. Here you pull those decisions into one review you can run before a page ships.
Why a checklist helps
Photo problems rarely show up on the machine where you built the page. A crop that looks fine on a wide monitor cuts off a face on a phone. A 4 MB hero loads instantly on office Wi-Fi and stalls on mobile data. A missing width attribute only shows as a layout jump on a slow connection.
A checklist moves these checks out of memory and into a repeatable routine. It also lets someone other than the author do the review, which matters because the author already knows what the photo is supposed to show.
The review has two passes. The first covers the photo itself: whether it is the right image, whether you may use it, and whether it is good enough. The second covers how the page delivers it: crop, size, format, layout, and alt text.
Pass 1: the photo itself
Purpose and message
Ask what the photo is for. A hero image sets mood and context. A product photo has to show detail. A team photo builds trust. If you cannot state the purpose in one sentence, the photo is probably decoration, and decoration is the first thing to cut when a page feels heavy.
Then check that the photo supports the message of the page. A stock image of a handshake rarely does.
Technical quality and resolution
- The source is at least as large as the biggest size it will be displayed, including high-density screens. A slot that is 800 CSS pixels wide needs a 1600 pixel source for a 2x display.
- The photo is in focus where it matters and not blurred by motion.
- Exposure is usable. Blown-out skies and crushed shadows cannot be recovered by compression settings.
- There are no compression artifacts from a previous save. Re-saving a JPEG that was already saved at low quality makes it worse.
Licensing and consent
- You hold a licence that covers this use. Check whether it allows commercial use, modification (cropping counts), and the size of audience.
- Attribution requirements are met if the licence has them.
- Identifiable people in the photo have agreed to its use, in writing where you can get it. For photos of staff or customers, confirm the agreement still stands.
- Children, private spaces, and visible documents or screens get extra attention.
Composition
- The subject is clear within a second.
- The subject sits on or near a thirds line, not dead center by accident.
- There is empty space where it will be needed, such as room for a headline or for the crop to move.
- Distracting edges are absent: a stray hand, a bright object, a cut-off limb at the border.
Pass 2: delivery on the page
Aspect ratio and crop
Check each slot's aspect ratio against the photo. If the photo is 3:2 and the slot is 16:9, something will be cropped, and you should know what. Open the page at your narrowest and widest breakpoints and look at where the subject lands.
.hero img {
width: 100%;
aspect-ratio: 16 / 9;
object-fit: cover;
object-position: 30% 40%;
}With object-fit: cover the image fills the box and the browser crops the overflow. Using object-position moves the visible area toward the subject instead of the center. In review, confirm that:
- The focal point survives at every breakpoint, not only the one you designed in.
object-positionis set when the subject is off center.- Faces and key objects do not touch an edge.
- Text overlays sit over a quiet area of the photo, and the text keeps enough contrast against it. Test the contrast at the busiest part of the image under the text, not the average.
Art direction
If a single crop fails on small screens, a different crop is the better fix than a different object-position. A wide landscape crop shrunk to a phone makes the subject tiny.
<picture>
<source media="(min-width: 800px)" srcset="hero-wide.jpg">
<img src="hero-square.jpg" width="800" height="800" alt="A baker lifting a loaf from a stone oven">
</picture>Check that each source has a matching crop file, that the fallback img is present, and that alt is on the img and not on a source. Reviewers often forget that the img element is what carries the alt text, the dimensions, and the fallback.
Sizes and format
<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">The sizes attribute tells the browser how wide the image will display, so it can pick the smallest file from srcset that still looks sharp. Check these points:
sizesmatches the real layout. If the image is in a two-column grid with padding,50vwis only an approximation, and a wrong value makes the browser download a file that is too large or too small.- The largest
srcsetcandidate is not larger than the source photo. Upscaled files add weight and no detail. - The format suits the content. Photographs compress well in modern formats such as WebP and AVIF, with JPEG as the broadly supported fallback. Flat graphics and logos suit other formats.
- Compression is tuned by eye. Look at skin tones, gradients in skies, and fine texture, where artifacts appear first.
- Metadata that you do not need, such as GPS location, is stripped before upload.
Layout shift
Every image needs width and height attributes, or a CSS aspect-ratio, so the browser reserves space before the file loads. Without them, text jumps down as images arrive, which hurts the Cumulative Layout Shift score and annoys readers.
To test, throttle the network in your browser's developer tools and reload. Nothing below an image should move when the image appears.
Images with object-fit need a box with a known size. If CSS sets height: auto on an image whose container is also unsized, the reserved space can still collapse.
Loading priority
- The image at the top of the page, usually the largest visible one, is not lazy-loaded. Lazy loading it delays the main content.
- Images below the fold use
loading="lazy".
Alt text
- Every informative image has alt text that says what the image contributes to this page, not only what it shows.
- Decorative images have
alt=""so screen readers skip them. - The text does not begin with "image of" or "photo of".
- Text that appears inside the image is repeated in the alt text, since a screen reader cannot read pixels.
- If the same photo means different things in different places, the alt text differs.
A useful test is to read only the alt text aloud, in page order. If the page still makes sense, the alt text is doing its job.
Running the review
The table below groups the checks by who is best placed to do them.
| Check | Best done by | How |
|---|---|---|
| Purpose and message | Editor or designer | Ask for the purpose in one sentence |
| Quality, composition | Designer | View the source at full size |
| Licence and consent | Editor or legal contact | Match each image to a record |
| Crop at each breakpoint | Developer | Resize the window or use device mode |
| Sizes, format, weight | Developer | Network panel, check transferred bytes |
| Layout shift | Developer | Throttle the network and reload |
| Alt text | Anyone, ideally with a screen reader | Read alt text in page order |
Keep a record for each image: source, licence, consent, who reviewed it, and the date. When a licence expires or a person withdraws consent, you can find every page that uses the photo.
Common mistakes
- Reviewing only at your own screen width.
- Checking the crop but not the file weight, or the reverse.
- Setting
sizesonce and never updating it after a layout change. - Replacing a photo with a different aspect ratio and forgetting to update
widthandheight. - Treating alt text as a field to fill with the file name.
Exercises
Exercise
A hero image uses object-fit: cover in a 16:9 box and looks good on your laptop. On a phone, the box becomes much narrower and the person's face is cut off at the left edge. Name two fixes and say when you would choose each.
Show answer
First, set object-position so the visible area moves toward the face. Choose this when the subject sits off center and a small shift keeps it in frame. Second, use a picture element with a separate crop for narrow screens. Choose this when the subject becomes too small or cannot fit in the narrow box even after shifting the position. Either fix must be checked at the narrowest breakpoint afterward.
Exercise
You review a page and find an img with srcset and sizes but no width or height attributes and no CSS aspect-ratio. What symptom would a user see on a slow connection, and what is the fix?
Show answer
The text below the image would jump down when the image loads, because the browser had no space reserved for it. This is layout shift. Add width and height attributes that match the image's aspect ratio, or set a CSS aspect-ratio, so the browser reserves the space before the file arrives.
Exercise
A team photo shows four colleagues at a whiteboard, with a sign in the background that reads "Q3 Planning". Write alt text that follows the checklist, and say what you would change if the same photo appeared as a purely decorative background.
Show answer
Example: "Four colleagues around a whiteboard in a meeting room, with a sign reading 'Q3 Planning'." It describes the contribution of the image and repeats the text inside the image, and it avoids starting with "photo of". If the photo is purely decorative, use alt="" so screen readers skip it.