Instant estimate
Performance

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 businesses

Sources and further reading

  1. Image file type and format guide, MDN Web Docsdeveloper.mozilla.org
  2. Image compression, Wikipediaen.wikipedia.org

Planning a website?

Get a price range in a minute with the instant estimate, or book a 15-minute intro call. Regular builds fast, light websites for sustainable and circular businesses, in Astro or Framer, whichever fits your team.

Book a 15 min introInstant estimate

Instant estimate