Skip to content
File formats and productionguide

How to ship an AVIF icon with a fallback image

By SkeuDesign Editorial Team1 min read

Answer in brief

Use picture with an AVIF source type and a conventional img fallback. Include the text alternative and dimensions on the img, which remains the rendered image element.

Trace a single thumbnail request

Place an image/avif source above a PNG img for a polished enamel badge. Inspect currentSrc and the response Content-Type on a supported browser, then test the fallback by temporarily omitting that source in a local fixture.

Check that the fallback serves the same layout

If the AVIF was cropped more tightly than the PNG, the supported and fallback paths will appear to show differently sized badges despite identical CSS. Place screenshots from both paths over each other and compare the silhouette bounds. Export both formats from the same sized artboard when the framing should match.

Sources

  1. [1] HTML Standard — WHATWG, accessed November 23, 2026

Frequently asked questions

Will a PNG fallback repair a missing AVIF file?

Format selection is separate from recovering after a chosen URL fails. Verify every candidate exists when deploying the markup.