Compress images so pages stay fast
The largest picture on a page usually decides how fast the page feels. A few habits keep it quick without visible loss.
1. Resize first
Scale the image to the size it is shown at. A 6,000-pixel file in a 1,200-pixel slot wastes four fifths of the download.
2. Choose a modern format
WebP and AVIF are much smaller than JPEG at the same quality and work in current browsers.
3. Give the browser the dimensions
Set width and height on the image tag so the layout does not jump while it loads, and lazy-load pictures further down the page.
Download the full-size royalty-free photo from Affordable Royalty-Free Photos, keep it as your master and export smaller copies from it.