Modern Image Formats

Created by: WordPress Performance Team

Rating:
Downloaded: 276k times

This plugin adds WebP and AVIF support for media uploads within the WordPress application. By default, AVIF images will be generated if supported on the hosting server, otherwise WebP will be used as the output format. When both formats are available, the output format can be selected under Settings > Media. Modern images will be generated only for new uploads, pre-existing images will only converted to a modern format if images are regenerated. Images can be regenerated with a plugin like Regenerate Thumbnails or via WP-CLI with the wp media regenerate command.

By default, only modern image format sub-sizes will be generated for JPEG uploads – only the original uploaded file will still exist as a JPEG image, generated image sizes use be WebP or AVIF files. To change this behavior, there is a checkbox in Settings > Media “Also output JPEG” that – when checked – will result in the plugin generating both JPEG and WebP or AVIF images for every sub-size (noting again that this will only affect newly uploaded images, i.e. after making said change).

This plugin was formerly known as WebP Uploads.

Screenshots

    Categories

    Get New Themes & Resources