AVIF / WebP Images

WordPress plugin

AVIF / WebP Images is a WordPress plugin that can rewrite image sources of the requested page with AVIF and WebP files, if those are found in the same folder (and also if the file format is marked as accepted by the HTTP Accept header).

To use this plugin, simply encode your images in AVIF or WebP, give those files the same names as their JPG/PNG counterparts (but with an .avif or .webp file extension), or append .avif or .webp to the names of your encoded images. For example: