=== Force WebP === Contributors: Qrzysio Tags: webp, images, optimization, converter, upload Requires at least: 6.7 Tested up to: 6.8 Requires PHP: 8.3 Stable tag: 1.1 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Forces every uploaded JPG/PNG image to WebP format and removes the original file. == Description == This plugin converts every uploaded JPG or PNG image to the WebP format and removes the original file. It also automatically sets the image alt text based on the filename. == Installation == 1. Download the plugin or install it from the WordPress Plugin Directory. 2. Activate it via the Plugins menu in WordPress. 3. From now on, any JPG or PNG file uploaded to the Media Library will: - be converted to WebP (quality 90%) - have the original file removed - receive an alt text based on the filename - be renamed to avoid overwriting if duplicates exist == Configuration == You can set the image quality in Tools -> Force WebP. Choose your preferred value and save the settings. The new quality will be used for all images uploaded after you change it. == Frequently Asked Questions == = Does the plugin support GIFs? = No. Only JPG/JPEG and PNG are supported. Other formats remain unchanged. = What happens if the server does not have Imagick with WebP support? = The plugin will detect that and leave the uploaded file in its original format. = How can I change the compression quality? = The default is 90%. You can modify it by editing the `QUALITY` constant in the PHP file. == Upgrade Notice == == Changelog == = 1.1 = * Improved: plugin now checks whether `imagick` is available on the server. = 1.0.3 = * Fixed issue where PNG images without transparency were converted to fully transparent images. * Added configuration page in Tools -> Force WebP to set image quality. = 1.0.2 = * Default WebP changed to 90% = 1.0.1 = * Added filename uniqueness handling for WebP files = 1.0 = * Initial release: convert JPG/PNG to WebP (90% quality), remove original files, rename files, and set alt text