Image optimization starts with measuring the files actually deployed, rather than assuming that a WebP extension or a percentage in a dashboard proves a faster website. We examined every SDK editorial cover in the repository.
Measured source assets: 17 WebP covers
We read the Git tree at commit b51e968 and counted the byte size of each of the 17 SDK editorial WebP covers, including the 12 newly supplied images. Unlike our synthetic timing models, these are actual repository file sizes.
| Measure | Bytes |
|---|---|
| All 17 covers | 405,946 |
| Smallest | 7,802 |
| Median | 20,054 |
| Largest | 53,408 |
The largest cover is 6.85 times the smallest. That variation remains despite a shared format and visual family. The twelve supplied 1672 × 941 WebPs were committed without recompression. The full set's file sizes are not an on-wire network trace or a before/after LCP measurement; browsers do not necessarily request every cover on one route.
Choose image width using layout, not device names
<img
src="/cover-840.webp"
srcset="/cover-420.webp 420w, /cover-840.webp 840w"
sizes="(max-width: 640px) calc(100vw - 32px), 840px"
width="840" height="472" alt="Descriptive artwork"
/>
A 360 CSS-pixel slot at device-pixel ratio 2 can use about 720 source pixels; an 840w candidate is a reasonable example, not a mandatory universal size. Preserve the same aspect ratio for alternatives and keep intrinsic dimensions to avoid layout movement. The example variant paths are illustrative, not claims that the existing covers have already been resized.
Image discovery is a timing problem
An image that is 20 KB but discovered after a large JavaScript bundle may reach the screen later than a larger image declared in initial HTML. Prioritize the likely LCP image, lazy-load genuinely offscreen content, and do not give every thumbnail high priority. Google's LCP guide describes the relevant measurement. Use the Media SDK for variant generation when that tradeoff is warranted.
Compression experiments need a quality constraint
To compare an original with transformed variants, hold the crop, displayed size and input constant, measure exact bytes and inspect text, edges and transparency at the target size. Report the encoder, options and output dimensions. A ratio based on a lossless source and a smaller lossy output is incomplete without visual acceptance. Our repository inventory intentionally did not recompress supplied artwork; no byte-saving result can be inferred from it.
What belongs in a production performance study
Track request waterfall, LCP breakdown, decoded dimensions, actual transferred bytes and cache state. Segment by route and device; compare repeat visits separately from cold cache. Our percentile example explains the risk of aggregating devices, and SEO release gates explain where metadata and image discovery can be checked. The image compressor is a separate tool; use it for controlled experiments, not automatic re-encoding of every existing WebP.
Method and reproducibility: Repository data inspection. See Code Deb's recorded experiment results and reproduction script in the repository. Figures are reproducible from declared inputs, not undisclosed client outcomes. The cited external material is independent of Code Deb's experiment.