<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <id>https://web.dev/</id>
  <title>Vignesh Venkatasubramanian on web.dev</title>
  <updated>2026-04-15T23:21:06Z</updated>
  <author>
    <name>Vignesh Venkatasubramanian</name>
  </author>
  <link href="https://web.dev/authors/vignesh/feed.xml" rel="self"/>
  <link href="https://web.dev/"/>
  <icon>https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/8c6t6kea6QWzRJ1oEIal.jpg?auto=format</icon>
  <logo>https://web.dev/images/shared/rss-banner.png</logo>
  <subtitle>Staff Software Engineer at Google</subtitle>
  
  
  <entry>
    <title>Deploying AVIF for more responsive websites</title>
    <link href="https://web.dev/avif-updates-2023/"/>
    <updated>2023-05-24T00:00:00Z</updated>
    <id>https://web.dev/avif-updates-2023/</id>
    <content type="html" mode="escaped">&lt;p&gt;&lt;a href=&quot;https://aomedia.org/avif/&quot; rel=&quot;noopener&quot;&gt;AVIF&lt;/a&gt; is a new image format that is quickly gaining popularity on the web because of its high compression rates, efficient performance, and broad adoption. AVIF is an open, royalty-free image format that is based on the AV1 video codec standardized by the Alliance for Open Media. This blog post will provide an overview of how AVIF is adopted in the ecosystem, and what kind of performance and quality benefits developers can expect from AVIF for still images and animations.&lt;/p&gt;
&lt;h2 id=&quot;whats-new-with-the-avif-ecosystem&quot;&gt;What’s new with the AVIF ecosystem? &lt;a class=&quot;headline-link&quot; href=&quot;https://web.dev/avif-updates-2023/#whats-new-with-the-avif-ecosystem&quot;&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Since the introduction of AVIF in Chrome, Firefox and Safari, usage of AVIF on the web has been growing steadily; &lt;a href=&quot;https://caniuse.com/avif&quot; rel=&quot;noopener&quot;&gt;almost all browsers&lt;/a&gt; support AVIF today.&lt;/p&gt;
&lt;p&gt;In Chrome alone, AVIF usage grew to approximately one percent in a little over a year after Chrome added AVIF support in stable.&lt;/p&gt;
&lt;figure&gt;
  &lt;img alt=&quot;A line graph of AVIF usage in Chrome from May 2021 to March 2023. Support has steadily grown from 0% to just beneath 1.4%.&quot; decoding=&quot;async&quot; height=&quot;367&quot; loading=&quot;lazy&quot; sizes=&quot;(min-width: 800px) 800px, calc(100vw - 48px)&quot; src=&quot;https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/QunCznNR5EJf8lp4rGNe.png?auto=format&quot; srcset=&quot;https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/QunCznNR5EJf8lp4rGNe.png?auto=format&amp;w=200 200w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/QunCznNR5EJf8lp4rGNe.png?auto=format&amp;w=228 228w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/QunCznNR5EJf8lp4rGNe.png?auto=format&amp;w=260 260w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/QunCznNR5EJf8lp4rGNe.png?auto=format&amp;w=296 296w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/QunCznNR5EJf8lp4rGNe.png?auto=format&amp;w=338 338w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/QunCznNR5EJf8lp4rGNe.png?auto=format&amp;w=385 385w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/QunCznNR5EJf8lp4rGNe.png?auto=format&amp;w=439 439w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/QunCznNR5EJf8lp4rGNe.png?auto=format&amp;w=500 500w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/QunCznNR5EJf8lp4rGNe.png?auto=format&amp;w=571 571w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/QunCznNR5EJf8lp4rGNe.png?auto=format&amp;w=650 650w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/QunCznNR5EJf8lp4rGNe.png?auto=format&amp;w=741 741w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/QunCznNR5EJf8lp4rGNe.png?auto=format&amp;w=845 845w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/QunCznNR5EJf8lp4rGNe.png?auto=format&amp;w=964 964w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/QunCznNR5EJf8lp4rGNe.png?auto=format&amp;w=1098 1098w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/QunCznNR5EJf8lp4rGNe.png?auto=format&amp;w=1252 1252w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/QunCznNR5EJf8lp4rGNe.png?auto=format&amp;w=1428 1428w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/QunCznNR5EJf8lp4rGNe.png?auto=format&amp;w=1600 1600w&quot; width=&quot;800&quot; /&gt;
&lt;/figure&gt;
&lt;p&gt;A number of image CDNs, such as &lt;a href=&quot;https://techdocs.akamai.com/ivm/changelog/apr-07-2021-new-policy-filters-and-avif-image-format&quot; rel=&quot;noopener&quot;&gt;Akamai&lt;/a&gt;, &lt;a href=&quot;https://blog.cloudflare.com/images-avif-blur-bundle/&quot; rel=&quot;noopener&quot;&gt;Cloudflare&lt;/a&gt;, &lt;a href=&quot;https://cloudinary.com/blog/how_to_adopt_avif_for_images_with_cloudinary&quot; rel=&quot;noopener&quot;&gt;Cloudinary&lt;/a&gt; and &lt;a href=&quot;https://blog.imgix.com/2021/10/27/avif-limited-availability&quot; rel=&quot;noopener&quot;&gt;Imgix&lt;/a&gt; are serving AVIF images today. In a &lt;a href=&quot;https://blog.imgix.com/2021/10/27/avif-limited-availability&quot; rel=&quot;noopener&quot;&gt;blog post&lt;/a&gt; announcing AVIF support, Imgix reported 60% file size savings compared to JPEG and 35% savings compared to WebP. These file size savings lead to significant storage savings, but also help pages load faster, yielding faster &lt;a href=&quot;https://web.dev/lcp/&quot;&gt;Largest Contentful Paint (LCP)&lt;/a&gt; times. LCP is one of the &lt;a href=&quot;https://web.dev/learn-core-web-vitals/&quot;&gt;Core Web Vitals&lt;/a&gt;, and represents how quickly the largest block of content on the page has loaded. Using modern codecs to compress images is one of the &lt;a href=&quot;https://web.dev/optimize-lcp/&quot;&gt;key techniques&lt;/a&gt; to reduce LCP. &lt;a href=&quot;https://developer.chrome.com/docs/lighthouse/overview/&quot; rel=&quot;noopener&quot;&gt;Lighthouse&lt;/a&gt; is a great Chrome developer tool for testing your web site and to see &lt;a href=&quot;https://developer.chrome.com/en/docs/lighthouse/performance/uses-webp-images/&quot; rel=&quot;noopener&quot;&gt;how much savings AVIF would bring&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;WordPress is the &lt;a href=&quot;https://www.wpbeginner.com/beginners-guide/ultimate-list-of-wordpress-stats-facts-and-other-research/&quot; rel=&quot;noopener&quot;&gt;most popular&lt;/a&gt; website platform in the world, and there are number of plugins available for developers to convert their images to AVIF, such as:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://wordpress.org/plugins/autoptimize/&quot; rel=&quot;noopener&quot;&gt;AutoOptimize&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://wordpress.org/plugins/webp-converter-for-media/&quot; rel=&quot;noopener&quot;&gt;Converted for Media&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://ewww.io/&quot; rel=&quot;noopener&quot;&gt;EWWW Image Optimizer&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://optimole.com/&quot; rel=&quot;noopener&quot;&gt;Optimole&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://shortpixel.com/&quot; rel=&quot;noopener&quot;&gt;ShortPixel Image Optimizer&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For more hands-on developers, tools like &lt;a href=&quot;https://imagemagick.org/index.php&quot; rel=&quot;noopener&quot;&gt;ImageMagick&lt;/a&gt; and &lt;a href=&quot;https://ffmpeg.org/&quot; rel=&quot;noopener&quot;&gt;FFmpeg&lt;/a&gt; are a good starting point.&lt;/p&gt;
&lt;h2 id=&quot;avif-encode-speed&quot;&gt;AVIF encode speed &lt;a class=&quot;headline-link&quot; href=&quot;https://web.dev/avif-updates-2023/#avif-encode-speed&quot;&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Fast encoding speed and high visual quality are critical for deploying image compression at scale. AVIF software encoding speed has improved significantly over the past two years. Compared to other modern still image formats, AVIF produces smaller files with similar visual quality (see the following graph, lower is better) but is also &lt;a href=&quot;https://storage.googleapis.com/avif-comparison/subset1.html&quot; rel=&quot;noopener&quot;&gt;faster to encode&lt;/a&gt;.&lt;/p&gt;
&lt;figure&gt;
  &lt;img alt=&quot;A bar chart comparing various image codec file sizes as a percentage of the output of TurboJPEG. AVIF is lowest, then JPEG XL, then WebP, and finally MozJPEG.&quot; decoding=&quot;async&quot; height=&quot;415&quot; loading=&quot;lazy&quot; sizes=&quot;(min-width: 800px) 800px, calc(100vw - 48px)&quot; src=&quot;https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/bmoOLQMWjYTQzWK8hPE8.png?auto=format&quot; srcset=&quot;https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/bmoOLQMWjYTQzWK8hPE8.png?auto=format&amp;w=200 200w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/bmoOLQMWjYTQzWK8hPE8.png?auto=format&amp;w=228 228w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/bmoOLQMWjYTQzWK8hPE8.png?auto=format&amp;w=260 260w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/bmoOLQMWjYTQzWK8hPE8.png?auto=format&amp;w=296 296w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/bmoOLQMWjYTQzWK8hPE8.png?auto=format&amp;w=338 338w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/bmoOLQMWjYTQzWK8hPE8.png?auto=format&amp;w=385 385w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/bmoOLQMWjYTQzWK8hPE8.png?auto=format&amp;w=439 439w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/bmoOLQMWjYTQzWK8hPE8.png?auto=format&amp;w=500 500w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/bmoOLQMWjYTQzWK8hPE8.png?auto=format&amp;w=571 571w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/bmoOLQMWjYTQzWK8hPE8.png?auto=format&amp;w=650 650w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/bmoOLQMWjYTQzWK8hPE8.png?auto=format&amp;w=741 741w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/bmoOLQMWjYTQzWK8hPE8.png?auto=format&amp;w=845 845w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/bmoOLQMWjYTQzWK8hPE8.png?auto=format&amp;w=964 964w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/bmoOLQMWjYTQzWK8hPE8.png?auto=format&amp;w=1098 1098w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/bmoOLQMWjYTQzWK8hPE8.png?auto=format&amp;w=1252 1252w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/bmoOLQMWjYTQzWK8hPE8.png?auto=format&amp;w=1428 1428w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/bmoOLQMWjYTQzWK8hPE8.png?auto=format&amp;w=1600 1600w&quot; width=&quot;800&quot; /&gt;
&lt;/figure&gt;
&lt;p&gt;The chart below (higher is better) illustrates how AVIF encoding speed compares to other image formats. Previous generation codecs like WebP benefit from the less complex (but also less efficient) compression algorithms. With a multi-threaded encoding scheme, AVIF achieves similar performance for common use cases while delivering significant compression gains.&lt;/p&gt;
&lt;figure&gt;
  &lt;img alt=&quot;A comparison of image codec encoding speed. The compared encoders are average AVIF, average JPEG XL, average WebP (one thread), and average MozJPEG (one thread). AVIF is generally one of the fastest image encoders in terms of best quality and default effort, but is the slowest of all encoders for on-the-fly performance.&quot; decoding=&quot;async&quot; height=&quot;433&quot; loading=&quot;lazy&quot; sizes=&quot;(min-width: 800px) 800px, calc(100vw - 48px)&quot; src=&quot;https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/FSzUG4d4ixJQytow1WNU.png?auto=format&quot; srcset=&quot;https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/FSzUG4d4ixJQytow1WNU.png?auto=format&amp;w=200 200w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/FSzUG4d4ixJQytow1WNU.png?auto=format&amp;w=228 228w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/FSzUG4d4ixJQytow1WNU.png?auto=format&amp;w=260 260w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/FSzUG4d4ixJQytow1WNU.png?auto=format&amp;w=296 296w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/FSzUG4d4ixJQytow1WNU.png?auto=format&amp;w=338 338w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/FSzUG4d4ixJQytow1WNU.png?auto=format&amp;w=385 385w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/FSzUG4d4ixJQytow1WNU.png?auto=format&amp;w=439 439w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/FSzUG4d4ixJQytow1WNU.png?auto=format&amp;w=500 500w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/FSzUG4d4ixJQytow1WNU.png?auto=format&amp;w=571 571w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/FSzUG4d4ixJQytow1WNU.png?auto=format&amp;w=650 650w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/FSzUG4d4ixJQytow1WNU.png?auto=format&amp;w=741 741w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/FSzUG4d4ixJQytow1WNU.png?auto=format&amp;w=845 845w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/FSzUG4d4ixJQytow1WNU.png?auto=format&amp;w=964 964w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/FSzUG4d4ixJQytow1WNU.png?auto=format&amp;w=1098 1098w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/FSzUG4d4ixJQytow1WNU.png?auto=format&amp;w=1252 1252w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/FSzUG4d4ixJQytow1WNU.png?auto=format&amp;w=1428 1428w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/FSzUG4d4ixJQytow1WNU.png?auto=format&amp;w=1600 1600w&quot; width=&quot;800&quot; /&gt;
&lt;/figure&gt;
&lt;p&gt;For developers interested in more detailed encoding speed and visual quality comparisons, the &lt;a href=&quot;https://storage.googleapis.com/avif-comparison/index.html&quot; rel=&quot;noopener&quot;&gt;Image Coding Comparisons&lt;/a&gt; site contains reproducible benchmark results.&lt;/p&gt;
&lt;p&gt;While software implementations for modern image codecs like AVIF and WebP are optimized for x86 and ARM processors architectures, compressing vast amounts of images at scale can be computationally expensive. One alternative to reduce compression costs is to explore hardware acceleration. &lt;a href=&quot;https://www.blue-dot.io/&quot; rel=&quot;noopener&quot;&gt;Bluedot&lt;/a&gt; has developed a hardware accelerated Pulsar-AVIF encoder running on programmable FPGAs, such as AMD&#39;s Alveo U250. Compared to software based avifenc, Pulsar-AVIF delivers a 7 to 23 times speed improvement with similar &lt;a href=&quot;https://www.blue-dot.io/avif-speed-quality-benchmark/&quot; rel=&quot;noopener&quot;&gt;compression efficiency&lt;/a&gt;.&lt;/p&gt;
&lt;div class=&quot;table-wrapper scrollbar&quot;&gt;
  &lt;table&gt;
    &lt;thead&gt;
      &lt;tr&gt;
        &lt;th&gt;Encoder&lt;/th&gt;
        &lt;th&gt;Encode time (ms)&lt;/th&gt;
        &lt;th&gt;Frames per second&lt;/th&gt;
        &lt;th&gt;CPU utilization&lt;/th&gt;
        &lt;th&gt;Hardware specification&lt;/th&gt;
      &lt;/tr&gt;
    &lt;/thead&gt;
    &lt;tbody&gt;
      &lt;tr&gt;
        &lt;td&gt;
          Pulsar-AVIF&lt;br /&gt;
          (FPGA)
        &lt;/td&gt;
        &lt;td&gt;60&lt;/td&gt;
        &lt;td&gt;409.85&lt;/td&gt;
        &lt;td&gt;305%&lt;/td&gt;
        &lt;td&gt;
          AMD Alveo U250 1ea + Intel(R) Xeon(R)&lt;br /&gt;
          Platinum 8171 CPU at 2.6GHz, 10 cores
        &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
        &lt;td&gt;
          avifenc&lt;br /&gt;
          (libaom)
        &lt;/td&gt;
        &lt;td&gt;405&lt;/td&gt;
        &lt;td&gt;59.26&lt;/td&gt;
        &lt;td&gt;3200%&lt;/td&gt;
        &lt;td&gt;
          Intel(R) Xeon(R) Platinum 8370C CPU at&lt;br /&gt;
          2.8GHz, 32 cores
        &lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
        &lt;td&gt;
          avifenc&lt;br /&gt;
          (SVT-AV1)
        &lt;/td&gt;
        &lt;td&gt;1325&lt;/td&gt;
        &lt;td&gt;18.11&lt;/td&gt;
        &lt;td&gt;3200%&lt;/td&gt;
        &lt;td&gt;
          Intel(R) Xeon(R) Platinum 8370C CPU at&lt;br /&gt;
          2.8GHz, 32 cores
        &lt;/td&gt;
      &lt;/tr&gt;
    &lt;/tbody&gt;
    &lt;caption&gt;
      AVIF encode speed comparison&lt;br /&gt;
      &lt;ul&gt;
        &lt;li&gt;Test set: Kodak (24 images of 768x512)&lt;/li&gt;
        &lt;li&gt;Encoding 24 images simultaneously (24 processes)&lt;/li&gt;
        &lt;li&gt;Each software encoding process is executed with 4 threads. (-j 4)&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/caption&gt;
  &lt;/table&gt;
&lt;/div&gt;
&lt;p&gt;Developers can deploy Pulsar-AVIF encoder with cloud virtual machines, such as &lt;a href=&quot;https://learn.microsoft.com/en-us/azure/virtual-machines/np-series&quot; rel=&quot;noopener&quot;&gt;Azure NP-Series&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&quot;avif-features-for-responsive-web-pages&quot;&gt;AVIF features for responsive web pages &lt;a class=&quot;headline-link&quot; href=&quot;https://web.dev/avif-updates-2023/#avif-features-for-responsive-web-pages&quot;&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;AVIF has a few interesting features that will help to deliver more responsive web pages. This time we’ll dive a bit into animated AVIFs, which are by far the most efficient way of delivering cool animations on the web.&lt;/p&gt;
&lt;h3 id=&quot;animated-avif&quot;&gt;Animated AVIF &lt;a class=&quot;headline-link&quot; href=&quot;https://web.dev/avif-updates-2023/#animated-avif&quot;&gt;#&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Animated &lt;a href=&quot;https://en.wikipedia.org/wiki/GIF&quot; rel=&quot;noopener&quot;&gt;GIF&lt;/a&gt; is still &lt;a href=&quot;https://almanac.httparchive.org/en/2022/media#gifs-animated-and-not&quot; rel=&quot;noopener&quot;&gt;a popular format&lt;/a&gt; for animated images, despite being 35 years old. Biggest drawbacks of animated GIFs are the support for 256 colors only and poor compression leading to very large file sizes while also limiting the resolution or frame rate for practical use cases. In contrast, animated AVIF coding is actually the same as AV1 video coding scheme which provides significant file size savings compared to animated GIF.&lt;/p&gt;
&lt;p&gt;We ran a simple benchmark where we encoded a set of animated GIFs to both AVIF and JPEG XL. Over the test set, median file size savings percentage was approximately 86% compared to original GIF files and about 73% compared to animated JPEG XL files*.&lt;/p&gt;
&lt;figure&gt;
  &lt;img alt=&quot;A comparison of animated image codec performance. AVIF outperforms GIF and JPEG XL in terms of both average and median file size.&quot; decoding=&quot;async&quot; height=&quot;371&quot; loading=&quot;lazy&quot; sizes=&quot;(min-width: 600px) 600px, calc(100vw - 48px)&quot; src=&quot;https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/ltmx3lsTIyqiVcRAaYXL.png?auto=format&quot; srcset=&quot;https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/ltmx3lsTIyqiVcRAaYXL.png?auto=format&amp;w=200 200w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/ltmx3lsTIyqiVcRAaYXL.png?auto=format&amp;w=228 228w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/ltmx3lsTIyqiVcRAaYXL.png?auto=format&amp;w=260 260w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/ltmx3lsTIyqiVcRAaYXL.png?auto=format&amp;w=296 296w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/ltmx3lsTIyqiVcRAaYXL.png?auto=format&amp;w=338 338w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/ltmx3lsTIyqiVcRAaYXL.png?auto=format&amp;w=385 385w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/ltmx3lsTIyqiVcRAaYXL.png?auto=format&amp;w=439 439w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/ltmx3lsTIyqiVcRAaYXL.png?auto=format&amp;w=500 500w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/ltmx3lsTIyqiVcRAaYXL.png?auto=format&amp;w=571 571w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/ltmx3lsTIyqiVcRAaYXL.png?auto=format&amp;w=650 650w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/ltmx3lsTIyqiVcRAaYXL.png?auto=format&amp;w=741 741w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/ltmx3lsTIyqiVcRAaYXL.png?auto=format&amp;w=845 845w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/ltmx3lsTIyqiVcRAaYXL.png?auto=format&amp;w=964 964w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/ltmx3lsTIyqiVcRAaYXL.png?auto=format&amp;w=1098 1098w, https://web-dev.imgix.net/image/jL3OLOhcWUQDnR4XjewLBx4e3PC3/ltmx3lsTIyqiVcRAaYXL.png?auto=format&amp;w=1200 1200w&quot; width=&quot;600&quot; /&gt;
  &lt;figcaption&gt;
    * libavif and libjxl versions: libavif version 4cff6a3 (libaom version v3.5.0), libjxl version 176b1c03. Test set: 15 sample GIFs from &lt;a href=&quot;https://commons.wikimedia.org/wiki/Category:Animated_GIF_files.&quot; rel=&quot;noopener&quot;&gt;Wikipedia&lt;/a&gt;.
  &lt;/figcaption&gt;
&lt;/figure&gt;
&lt;p&gt;Chrome, Firefox and Safari all support animated AVIF playbacks.&lt;/p&gt;
&lt;p&gt;FFmpeg is one tool to use for creating animated AVIF files, here’s a basic example of converting a GIF to AVIF using FFmpeg:&lt;/p&gt;
&lt;div&gt;&lt;pre class=&quot;language-bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;ffmpeg -i &lt;span class=&quot;token string&quot;&gt;&quot;&lt;span class=&quot;token variable&quot;&gt;$INPUT_GIF&lt;/span&gt;&quot;&lt;/span&gt; -crf &lt;span class=&quot;token variable&quot;&gt;$CRF&lt;/span&gt; -b:v &lt;span class=&quot;token number&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;token string&quot;&gt;&quot;&lt;span class=&quot;token variable&quot;&gt;$OUTPUT&lt;/span&gt;.avif&quot;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;p&gt;&lt;code&gt;$CRF&lt;/code&gt; is the desired output quality on a scale of &lt;code&gt;0&lt;/code&gt; to &lt;code&gt;63&lt;/code&gt;. Lower values mean better quality and greater file size. &lt;code&gt;0&lt;/code&gt; uses &lt;a href=&quot;https://en.wikipedia.org/wiki/Lossless_compression&quot; rel=&quot;noopener&quot;&gt;lossless compression&lt;/a&gt;. Start with a value of &lt;code&gt;23&lt;/code&gt; for small animated AVIF files.&lt;/p&gt;
&lt;p&gt;FFmpeg uses libaom by default for encoding AVIF images, but it can also use &lt;a href=&quot;https://github.com/xiph/rav1e&quot; rel=&quot;noopener&quot;&gt;rav1e&lt;/a&gt; or &lt;a href=&quot;https://gitlab.com/AOMediaCodec/SVT-AV1&quot; rel=&quot;noopener&quot;&gt;SVT-AV1&lt;/a&gt; when available. More information about encoder choices, tuning the encoding parameters for speed/quality trade-offs can be found in &lt;a href=&quot;https://trac.ffmpeg.org/wiki/Encode/AV1&quot; rel=&quot;noopener&quot;&gt;FFmpeg&#39;s AV1 encoding guide&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Another use case is to repackage an AV1 video into AVIF without re-encoding the original file. This is significantly cheaper than decoding/encoding the original AV1 file and makes the AV1 video available for use with the &lt;code&gt;&amp;lt;img&amp;gt;&lt;/code&gt; element. Passing &lt;code&gt;-c:v copy&lt;/code&gt; to FFmpeg can do this.&lt;/p&gt;
&lt;div&gt;&lt;pre class=&quot;language-bash&quot;&gt;&lt;code class=&quot;language-bash&quot;&gt;ffmpeg -i &lt;span class=&quot;token string&quot;&gt;&quot;&lt;span class=&quot;token variable&quot;&gt;$INPUT_AV1_VIDEO&lt;/span&gt;&quot;&lt;/span&gt; -c:v copy -an &lt;span class=&quot;token string&quot;&gt;&quot;&lt;span class=&quot;token variable&quot;&gt;$OUTPUT&lt;/span&gt;.avif&quot;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;&lt;h2 id=&quot;conclusions&quot;&gt;Conclusions &lt;a class=&quot;headline-link&quot; href=&quot;https://web.dev/avif-updates-2023/#conclusions&quot;&gt;#&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;AVIF use on the web has been steadily increasing since launch and is widely supported by browsers, image CDNs, WordPress plugins and encoding tools. All in all, AVIF is a great choice for serving images on the web; AVIF is fast to encode and decode while providing the best quality or smallest file size, whichever you prefer for your website. AVIF is the most efficient way to deliver animations on the web. If you have questions, comments, or feature requests, please reach out on the &lt;a href=&quot;https://groups.google.com/a/aomedia.org/g/av1-discuss&quot; rel=&quot;noopener&quot;&gt;av1-discuss mailing list&lt;/a&gt;, &lt;a href=&quot;https://github.com/AOMediaCodec/community/wiki&quot; rel=&quot;noopener&quot;&gt;AOM Github community&lt;/a&gt;, and &lt;a href=&quot;https://github.com/AOMediaCodec/av1-avif/wiki&quot; rel=&quot;noopener&quot;&gt;AVIF wiki&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Hero image from &lt;a href=&quot;https://unsplash.com/photos/oXlXu2qukGE&quot; rel=&quot;noopener&quot;&gt;Unsplash&lt;/a&gt;, by &lt;a href=&quot;https://unsplash.com/@amal_z7z&quot; rel=&quot;noopener&quot;&gt;Amal S
&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;
</content>
    <author>
      <name>Jani Huoponen</name>
    </author><author>
      <name>Vignesh Venkatasubramanian</name>
    </author>
  </entry>
</feed>
