=== WebP/AVIF image optimizer === Contributors: fastware Tags: webp avif image optimize pagespeed Stable tag: 1.0.7 Requires at least: 5.9 Tested up to: 6.1 Requires PHP: 7.4 License: GPLv3 == Description == Fast & simple plugin to automatically serve WebP & AVIF images to browsers which support those formats (with fallback to original format). = Features = - Automatically convert JP(E)G/PNG images to WebP/AVIF. - Serve WebP/AVIF format to browsers which support those formats (relying on the "Accept" header). - Images are queued ondemand, and converted in background via a scheduled task. - Images which are never used (requested) will not be converted to save resources. - All images are lossless converted, so no quality loss. - No image URLs are changed, solution is purely based on .htaccess rewrite rules. - 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) ==Installation== Install & activate the plugin and go! = Server requirements = - Apache 2.x with mod_rewrite enabled - ImageMagick or GDlib with WebP support - ImageMagick with AVIF support (optional) * You can use this plugin without AVIF support, in that case only WebP conversion is done * Conversion of **_transparent_** PNG-files to AVIF is not supported yet, but it works great for JP(E)G and not-transparent PNG images = 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 JP(E)G/PNG file. Depending on the image, WebP/AVIF is not always the most efficient format. == Changelog == - 1.0.7 [13-03-2023] Added admin dashboard to check plugin/server configuration - 1.0.6 [07-03-2023] Fixed redirect bug on servers without avif support - 1.0.5 [04-03-2023] Moved working directory, to improve cleanup after uninstall - 1.0.4 [27-02-2023] Added support for PHP 7.4, fixed issue with scheduled converts - 1.0.3 [22-02-2023] Adjust code to improve quality - 1.0.2 [21-02-2023] Bugfix in GD convert - 1.0.1 [18-02-2023] Stricter typing & ImageMagick as primary converter with GD as fallback - 1.0.0 [17-02-2023] Initial version