Technical SEO
How to prepare website images without losing useful detail
Judge an image by the task it serves. Check dimensions, quality, cropping, alternative text and loading on the finished page, while retaining the original file.
A useful website image helps someone inspect a product, understand a service or complete a task. Reducing file size matters, but the saving loses its value when compression makes a diagram unreadable, removes material texture or allows a mobile crop to hide an essential detail. Start image preparation with the job each picture must do.
A product photograph, an article cover and an interface screenshot have different requirements. A cover may be decorative. An instruction needs a readable field or label. A product page needs an accurate view of the model being offered. One export preset cannot reliably serve all three purposes.
Define what the visitor must see
Before editing, record the purpose of each image type: show a finish, locate a control or illustrate completed work. Identify details that must survive resizing and cropping. These become acceptance criteria rather than vague requests to make the page look better.
If essential information exists only inside a picture, add a text explanation beside it. A step number, delivery condition or product specification should remain available when the image does not load. For a complex labelled diagram, a short explanation and a full-size link can be more usable than forcing visitors to zoom the entire page.
Use originals the business has permission to publish. A photograph of a similar product is not evidence of the exact configuration for sale. Clearly labelled fictional data can support a teaching example; a screenshot from a client’s private account does not become safe merely because it has been cropped.
Prepare sizes for the actual layout
Check how large the image appears on a phone and a wide screen. A small catalogue card usually does not need the same file as a detailed photograph opened for inspection. Preserve a high-quality original separately and serve prepared versions on the page.
Google’s image guidance describes responsive image delivery: srcset and sizes help the browser choose a resource, with src providing a basic image address. Multiple versions still need checking. Incorrect size conditions can cause the browser to select an unnecessarily large file.
Check cropping separately from resolution. A subject near the edge of an original may disappear in a centred mobile crop. Choose another frame, adjust positioning or display the whole photograph. An image fitting its container without horizontal overflow does not establish that the composition remains useful.
Compress without losing the required information
Prepare a few quality settings and inspect them at the size visitors will see. Look at object edges, small lettering, colour transitions and texture. The smallest file is suitable only if it preserves the information the picture is meant to communicate. A universal weight limit for every photograph and diagram is not a useful acceptance rule.
Choose the format around the image and browser support. Renaming a filename extension is not conversion. After export, confirm that the server returns an actual image rather than an error page at an image-looking address. This matters when moving material between a CMS and an asset store.
| Image type | Main acceptance criterion | Common failure |
|---|---|---|
| Product photograph | Shape, finish and relevant details remain visible | Compression removes useful texture |
| Diagram | Labels can be read | Tiny lettering on a large canvas |
| Instruction screenshot | The required control and its context are clear | A whole desktop instead of the relevant area |
| Article cover | The composition still works on a phone | The main subject is cropped out |
| Logo | Proportions and edges remain correct | Stretching the artwork to fill a box |
Write alternative text for the context
Alternative text communicates an image’s information or function in its current context. For a product photo, that might include the model and visible view. For a linked image, the destination or action matters. A purely decorative image can have an empty alt attribute. The W3C decision tree explains these distinctions.
Do not replace a description with a string of search terms. “Buy windows cheap price order” tells the reader little about the image. In a teaching example, “Two-panel window with the left panel open” is useful if that is what the photograph shows. Do not claim invisible qualities such as durability or sound insulation based on appearance alone.
A caption can do a different job from alt text. It may identify synthetic data, date a photograph or explain the detail being discussed. Avoid automatically repeating a complete adjacent caption in the alternative text when that creates redundant information for the reader.
Avoid delaying the main visual
Lazy loading can help with some images below the initial viewport, but it should not be applied to every file indiscriminately. If the main photograph is the LCP element, loading="lazy" delays its request. The web.dev LCP guidance explicitly advises against lazy loading that element.
Measure which element actually determines LCP; it may be text rather than a picture. After a change, compare loading under the same conditions. One successful local test does not describe every visitor’s experience across devices and networks.
Provide dimensions or an appropriate aspect ratio so the browser can reserve space. Watch the first screen while resources load slowly. The heading and action should not unexpectedly move as someone tries to use them. Improving compression alone will not necessarily fix a layout problem.
Accept the complete page
Open the finished page on a phone and a computer. Check the cover, in-article images, full-size links and social preview. Important details should be intelligible without guessing, captions should belong to the correct files and image addresses should work.
In an SEO audit, connect each finding to an actual consequence: a buyer cannot read a marking, the main visual arrives late or the instructions require repeated zooming. That is a more useful development task than “optimise all images”. Keep originals and export settings so that the next revision does not begin by compressing an already damaged file.
Share this article
