WebP/AVIF image optimizer

Fast & simple plugin to automatically serve WebP & AVIF images to browsers which support those formats (with fallback to original format).

Author:Fastware (profile at wordpress.org)
WordPress version required:5.9
WordPress version tested:6.2.2
Plugin version:2.0.7
Added to WordPress repository:25-02-2023
Last updated:03-07-2023
Rating, %:70
Rated by:8
Plugin URI:
Total downloads:4 328
Active installs:200+
plugin download
Click to start download

Fast, simple & free plugin to automatically convert and serve WebP & AVIF images.

Features

  • Automatically convert and serve WebP/AVIF images.
  • Increase your Google Pagespeed.
  • Only images which are really used will be converted, does not convert the whole media library.
  • WebP/AVIF quality is adjustable (default 100% = no quality loss)
  • No image URLs are changed, solution is purely based on .htaccess rewrite rules.
  • Serve original format in case the browser does not support WebP/AVIF (relying on the “Accept” header).
  • The following source formats are supported: JP(E)G, PNG, GIF, BMP.
  • Extra feature: WebP images are served as PNG when the browser/client does not support WebP (e.g. Microsoft Outlook).

Browser support

  • WebP: all modern browsers
  • AVIF: Chrome, Firefox, Safari (Edge doesn’t support AVIF yet)

Good to know

  • It may take a few minutes before the WebP/AVIF images are generated after activating the plugin.
  • AVIF is a relatively new format, and not widely supported yet on servers. This depends on your server configuration (see Server requirements).
  • Generating AVIF images is CPU-intensive, and may take a while.
  • WebP/AVIF format is only served when this format is smaller than the original file. Depending on the image, WebP/AVIF is not always the most efficient format.
  • Animated GIF-images are not supported yet as GDlib/ImageMagick don’t have support for it

How the plugin works

The plugin does nothing until the first image is requested. Here is the conversion flow.

  1. Original image is requested in browser
  2. Image is added to the conversion queue, original image is still served.
  3. Conversion queue is processed in background, queued images are converted to WebP/AVIF format.
  4. When the image is requested now, and the browser supports WebP and/or AVIF, the WebP/AVIF image is served.