INDEPENDENT THINKING. REAL TECHNOLOGY.
AUTOBUSKESTANICETECHNOLOGY, IN PERSPECTIVE.
SoftwareANALYSIS & EXPLAINED

AVIF and WebP: Choose Image Formats by the Complete Page, Not File Size Alone

Modern image formats can reduce transfer, but visual quality, encoding cost, decoding, dimensions, caching, and fallback determine the result readers actually experience.

Encuentro de la comunidad técnica Wikimedistas de Uruguay
Context photograph: Encuentro de la comunidad técnica Wikimedistas de Uruguay.jpg · Whoisrula / CC0. Image illustrates the subject; it does not represent our testing or necessarily the exact product discussed.
THE ESSENTIALS
  • Compare representative images at an acceptable visual result.
  • Transfer savings are only one part of page performance.
  • Keep originals, provenance, and accessible descriptions through the pipeline.

A smaller file can still be the wrong result

A conversion tool produces an image with fewer bytes, and the optimization looks successful. The picture may also have lost important detail, introduced distracting artifacts, or taken expensive processing to create. On a page, its dimensions and loading priority can matter more than the format choice. Image optimization should therefore be evaluated as a pipeline from a trustworthy source to a useful rendered result. The smallest output file is one candidate, not the definition of success.

web.dev describes modern image formats and page-performance considerations, while MDN documents format selection and the picture element. These references provide the platform mechanisms for delivering alternatives. They do not establish one compression saving for every photograph or browser. A useful comparison uses the site’s own image types, acceptable quality, and audience conditions. This article outlines that evaluation without claiming measured results for a particular encoder or a universal ranking among formats.

Start with the source and intended use

A detailed product photograph, a flat illustration, and a screenshot contain different visual structures. One encoding choice may not be best for all of them. Define what must remain legible at the displayed size. A photograph used as atmosphere can tolerate different tradeoffs from an image whose small printed labels support a technical explanation. Keep the intended crop and dimensions in the evaluation. Comparing full-resolution outputs for a thumbnail use case can waste effort and obscure the actual requirement.

Preserve the original source separately from generated variants. Repeatedly converting an already compressed derivative can accumulate quality loss and remove useful metadata. The source record should retain attribution and licensing information where required. An automated optimization pipeline should not sever that relationship merely because the output filename changes. For an editorial site, image authenticity and rights are part of content quality. A technically efficient derivative is not useful if the publisher can no longer explain where the photograph came from.

Compare visual results, not matching slider numbers

Encoder quality settings are not universal units. The same numeric value can produce different visual and size results across formats or implementations. Compare outputs at a quality level appropriate to the task, using representative images. Inspect difficult regions such as gradients, fine texture, text, edges, and low-light detail. Automated metrics can support the evaluation, but they should not replace a review of the features readers need to see. The acceptable result is a product decision.

Keep the comparison reproducible. Record source identity, crop, dimensions, encoder version, and settings. If a result changes after a tool upgrade, the team should be able to reproduce the earlier choice. Avoid presenting a single attractive example as evidence for the whole library. A site with varied photographs may benefit from a small set of policies based on content type rather than one aggressive setting applied indiscriminately. The pipeline should make exceptions manageable and explicit.

Encoding and decoding belong in the budget

Generating modern variants can consume CPU and time, especially when done on demand. Decide whether variants are created during publication, at first request, or through another supported service. The choice affects cache misses, publishing latency, and operating cost. A format that saves transfer may still be unsuitable for a real-time transformation path if its encoding cost exceeds the service budget. Measure the complete workflow under representative demand, including the first request that cannot reuse a cached result.

Client decoding and rendering also matter. A smaller transfer can help on constrained networks, while the device still needs to decode and present the image. Test realistic devices and page conditions rather than assuming bytes are the only resource. Include the main content image and scrolling behavior where relevant. If the page remains blocked by scripts or an oversized layout, a format conversion alone may have a limited visible effect. Performance work should follow the dominant delay in the actual experience.

Delivery needs dimensions, priority, and fallback

Use supported HTML mechanisms to offer appropriate formats and a fallback where the audience requires it. Check the actual selected resource in the browser. The server’s negotiation and cache behavior should agree with the content delivered, especially when responses vary by request capabilities. A correct image pipeline can still serve the wrong variant if the cache key or content type is misconfigured. Test through the deployed path, not only by opening a generated file directly.

Reserve layout space with appropriate dimensions or aspect-ratio behavior so the page does not shift unexpectedly as images arrive. Prioritize the image central to the initial reading experience and defer genuinely offscreen work where appropriate. Do not lazily load the primary image simply because a blanket rule says every image should be lazy. Loading policy should follow the image’s role. A small format saving cannot compensate fully for delaying the resource that makes the main content recognizable.

Keep alternative text meaningful and separate from filenames or compression metadata. A reader using assistive technology needs the image’s relevant meaning, not a description of the encoding process. Decorative images can be handled appropriately without forcing redundant narration. The optimization pipeline should preserve these editorial decisions. Accessibility, authenticity, and performance are parallel qualities of the same published asset, and none should disappear when a derivative is generated.

Check color handling with representative sources. A photograph can look different after conversion if the pipeline mishandles its color information. Review the generated variant in the actual delivery path and retain the original for comparison. The acceptance check should preserve the editorial intent of the photograph, rather than treating every visual difference as an acceptable consequence of fewer bytes.

Judge the page after the conversion

A focused rollout can compare page behavior, transfer, visual quality, and processing cost for a representative set. Include cold and warm delivery where both matter. Verify that each image remains the intended photograph and that crops do not remove important context. Keep a rollback path to the earlier variant if an encoder or delivery issue appears. The result should be reported with its conditions rather than turned into a universal claim about how much every site will save.

AVIF and WebP can be useful tools for delivering rich photography efficiently. Their value appears when the complete pipeline preserves meaning and improves the reading experience within the operating budget. Start with a licensed original, compare acceptable visual results, measure processing and page behavior, and verify delivery. The best format choice is the one that serves the image’s purpose for the actual audience, rather than the one that wins an isolated file-size contest.

Sources & further reading

Primary references inform the reporting. Our explanations, scenarios, and conclusions are editorial analysis; source statements are not independent test results.

  1. web.dev: Image performanceweb.dev
  2. MDN: The picture elementdeveloper.mozilla.org
  3. MDN: Image file type and format guidedeveloper.mozilla.org

Source publication or reference date: 2026-11-04.

See an error or an important update? Contact the editors.

AUTOBUSKESTANICE Editorial Desk

Source-backed technology explanations with a focus on engineering, practical decisions, and the limits of the evidence. How we work.

Keep exploring.