Images for the web — resolution, JPG, WebP and LCP
How I prep photos for a blog or shop: width in px, file weight, WebP with a fallback, and why 12 MP doesn’t belong in WordPress.
Author: Szymon · Published: 2026-05-15 · Updated: 2026-08-24
The usual reason a page feels slow is not “bad hosting” — it’s a 5 MB hero straight from the camera. The browser downloads megapixels the layout will never show.
Before I convert anything I ask: how many pixels wide is this actually displayed? Full-width banner — 1600–1920 px. Product card — 800–1200. Thumbnail — 400–600. The rest is the photographer’s ego, not UX.
Format
JPG is boring and works everywhere, including email and old CMS software.
WebP is usually 25–35% lighter at similar sharpness. Modern browsers take it. I keep a JPG fallback in <picture> when I have to cover edge cases.
AVIF can be smaller still; Safari support lagged for years — I don’t make a religion of it on a small site. WebP is enough.
Logos and icons: SVG when you can, PNG when you must rasterize. Don’t put a logo in JPG.
Publish checklist
Resize to the target width.
Pick a format (JPG / WebP / PNG).
Weight targets, not dogma: thumbnail < 100–200 KB, a large post image < 400–500 KB, unless it’s a lightbox original (then a separate file, not the grid asset).
After upload I look at LCP in PageSpeed or at least the Network tab: is the hero one reasonable request, or three copies of the same picture.
What not to do
Don’t re-save the banner as JPG in Photoshop “a bit smaller” on a loop. Go back to the source and export once.
Don’t mix random color profiles the browser will misread — web goes out as sRGB.
Related formats
Related converters
Was this article helpful?