Image compression
Image compression makes image files smaller, either by throwing away detail the eye barely notices (lossy) or by storing the same pixels more efficiently (lossless).
Photos compress best with lossy formats such as JPEG, WebP and AVIF, where a moderate quality setting usually looks identical and weighs a fraction of the original.Source 1 Graphics with flat colours and sharp edges are better as SVG or lossless PNG.Source 2
Size matters as much as compression: a 4000-pixel photo shown 800 pixels wide wastes most of its bytes. Responsive images fix that.
How Regular approaches it
Regular's image proxy does this on every image: it serves AVIF or WebP at the width the screen needs, so editors can upload the original and never think about it.
BenjaminWeb designer for sustainable and circular businessesSources and further reading
- Image file type and format guide, MDN Web Docsdeveloper.mozilla.org
- Image compression, Wikipediaen.wikipedia.org