A photograph with fine hair, a transparent logo and a screenshot with small lettering make a better test set than three similar hero images. Compression errors show up in different places. Pick files your designers and customers would notice if the conversion went wrong.

Compare at the size people see

Measure transferred bytes and inspect the image in its intended layout on an actual device. Look for broken transparency, soft lettering and banded shadows. Choose a quality setting for the content you serve. A smaller encoding may still be a poor trade if decoding or visual quality undermines the page.

Protect the format variants

When one URL can return different encodings, the delivery layer must distinguish the representations requested by different clients. Check the returned Content-Type for a client that accepts AVIF, one that accepts WebP and one using the fallback. Alternate those requests against a warmed cache to catch accidental variant reuse.

Make dimensions part of the rollout

Conversion alone leaves a large original unnecessarily large for a narrow screen. Supply suitable source dimensions and responsive candidates in your markup or image pipeline. Keep the original at the origin and test animation and transparency separately before enabling another conversion format across a distribution.

Sources & further reading

Reader questions

Does enabling AVIF guarantee that every image response is AVIF?

Conversion depends on the requested image, configuration and client capability. Inspect the returned media type and the actual transferred resource.