Images that don’t weigh your website down.
Images take up half of a website’s perceived surface and most of its weight. Between the photo you receive and the image displayed, a chain of simple decisions makes all the difference.
- Published
- Section
- Design & brand
- Format
- Method
- Reading time
- 04 min
- Reference
- FSJ-D06

Start with dimensions
It’s the most common and most costly mistake: publishing a six-thousand-pixel-wide photo to display it in an eight-hundred-pixel block. The browser downloads everything, then shrinks it. The rule is simple: export at the maximum display size, doubled for high-density screens.
Choose the right format
- WebP: the default choice today, much lighter than JPEG at equivalent quality.
- JPEG: still useful for photographs when compatibility comes first.
- PNG: reserved for images with transparency or crisp flat colours, otherwise it adds needless weight.
- SVG: for logos, icons and diagrams — sharp at every size, often just a few kilobytes.
Compress without damage
A quality of 75 to 85% is almost always enough for a web photograph: the visual difference is imperceptible, the weight saving considerable. Above all, check gradient areas — sky, soft shadows — where compression shows first.
Avoid layout jumps
An image without declared dimensions makes the text move when it arrives: the reader loses their line, or clicks in the wrong place. Stating the width and height reserves the space in advance and removes that shift.
Load at the right moment
- Images visible on arrival should be loaded first.
- The others wait until the user scrolls near them: that’s lazy loading.
- Only one image per page should be prioritised, usually the one at the top.
Choose before optimising
No compression makes up for a badly chosen image. Before talking format, decide: does this image bring information, proof or emotion? If it only fills space, removing it improves the page on every level.
- Generic stock photos weaken a brand: anyone can use them, and visitors recognise them.
- A real photo, even an imperfect one, beats a flawless but interchangeable staged shot.
- Interface screenshots must be readable at display size, not just full screen.
- A clear diagram often replaces three paragraphs and two photos.
Describe every image
Alt text serves first the people who can’t see the image — screen reader, dropped connection, image not loaded. It also helps search engines, which have no other way of knowing what a photo shows.
- Describe what the image brings, not everything it contains.
- Leave alt text empty for a purely decorative image.
- Avoid “image of”, “photo of”: the screen reader already announces it.
- For a screenshot or diagram, sum up the information it contains.
Where to store images
On a small website, images live in the project files: simple, free, enough. As soon as a client adds photos themselves, an image service becomes useful: it resizes, converts and automatically serves the right version to each screen.
Without that automation, performance degrades slowly: the first images are carefully prepared, the next ones are uploaded as they are, and six months later the home page weighs five megabytes.
A chain to write once
- 01ReceiveAsk for full-resolution originals, never screenshots or images compressed by a messaging app.
- 02SortChoose before processing: ten good images are better than thirty average ones.
- 03PrepareCrop, resize, export in the chosen format, with a readable file name.
- 04PublishDimensions declared, alt text written, lazy loading except for the first image.
Frame for mobile
A panoramic frame designed for a large screen becomes unreadable once cropped on a phone: the subject leaves the frame, the face is cut off. Check every important image in a narrow layout, and plan a different crop when the subject deserves it.
A well-prepared image weighs ten times less and looks ten times better.
The essentials in 4 points.
- 01Resize before exporting, always.
- 02The right format depends on the image’s content.
- 03Declaring dimensions stops the page from jumping while loading.
- 04Framing is decided for mobile as much as for desktop.