Image compression, explained
Images are usually the heaviest part of a web page. A single uncompressed hero photo can weigh more than the rest of the page combined.
WebP is supported by all modern browsers and is often far smaller than JPEG. AVIF can be smaller still, especially for photos, with wide support in current browsers.
Compression is only half the job. Serving the right size matters too: a phone should not download a 2,500 pixel wide image. Responsive images with srcset handle that.
Webflow can convert uploaded images to WebP or AVIF and creates responsive sizes. Astro has a built in image component that does the same at build time.



