JPEG
- Compression
- Lossy
- Use for
- Photographs and continuous-tone images
Lossy vs lossless image compression, which format to pick (JPEG, PNG, WebP, AVIF), and a working picture-element and command-line workflow for faster pages.
Image compression reduces image file size so pages load faster. Lossy compression (JPEG, lossy WebP and AVIF) discards data for smaller files. Lossless compression (such as PNG) reproduces the original exactly. MDN says WebP and AVIF generally compress better than PNG, JPEG and GIF, and suggests a PNG or JPEG fallback for browsers that lack support. Compress to help LCP, but not so far that images look blurry.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
Google Search supports BMP, GIF, JPEG, PNG, WebP, SVG and AVIF in image results.
The quality numbers are starting points, not rules. Export at a few levels, view them at the size users see, and keep the smallest one that still looks right. Image content decides how far you can go.
# Re-encode a JPEG at quality 80 and strip metadata
magick original.jpg -quality 80 -strip optimized.jpg
# Convert to WebP
cwebp -q 80 original.jpg -o optimized.webp
# Convert to AVIF
avifenc -q 60 original.jpg optimized.avif<picture>
<source srcset="photo.avif" type="image/avif">
<source srcset="photo.webp" type="image/webp">
<img src="photo.jpg" width="1200" height="800" alt="Storefront at night">
</picture>The browser uses the first source it supports. Google's image guidance also recommends srcset or <picture> for serving different versions to different devices, with a fallback src, because some browsers and crawlers do not understand these attributes.
fetchpriority="high" for it.width and height to every <img>. web.dev calls images a common cause of high CLS.<img> elements. Google does not index CSS background images.See lazy loading for what to defer and page speed for how this fits the wider picture.
3 questions people ask next, answered from the sources on this page.
Google's image guidance says high-quality photos appeal to users more than blurry, unclear ones, and also that images are often the largest contributor to page size. It points to PageSpeed Insights for analyzing site speed.
MDN says WebP and AVIF generally compress better than PNG, JPEG and GIF, and to use a picture element with a PNG or JPEG fallback if you need to support browsers that lack them. For screenshots, diagrams, logos and line art, MDN says to prefer lossless encoding because blurring around text and sharp edges is very visible.
None of the sources cited here give a number. Treat 80 as a starting point and compare the result with the original at display size.
The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.