The page is loaded in a real browser, at 1440×900 at 2x — a high-density laptop
screen — with its scripts and styles, and scrolled to the bottom and back so
lazy images load. Every image it draws is found that way, including CSS
backgrounds and images a script adds, along with the size the layout draws each at,
the srcset candidate it chose, and its Largest Contentful Paint.
The browser has no network of its own. Every request the page makes is performed
by this tool on its behalf, under the same rules as any other fetch here: public
addresses only, ports 80 and 443, and nothing but GET.
Each image is downloaded the way a current browser asks for it, so a site that already serves AVIF or WebP is compared against what it actually sends, not against a fallback JPEG. It is then decoded and encoded to AVIF and WebP at quality 80 with its metadata removed — the defaults a ZawCloud node applies — and the smaller of the two is reported.
When the page displays an image at a width its layout gives it, and the file is more than twice that wide, it is also encoded at twice the displayed width. Twice covers a high-density screen; every pixel past that is downloaded and thrown away.
A result never claims a saving that was not produced: an image whose re-encoded version came out larger is reported as already as small as it gets.
Beside the bytes, it reads what the markup and the headers say: a srcset
with no sizes, lazy loading on images in the first screen,
and how long each image may be cached and whether it can be revalidated. Those are
reported as notes, and never added to the saving.