=== Only WebP Uploads === Contributors: rbonfil Tags: webp, images, conversion, optimization, upload Requires at least: 5.8 Tested up to: 6.9 Stable tag: 1.0.1 Requires PHP: 7.4 License: GPLv3 or later License URI: https://www.gnu.org/licenses/gpl-3.0.html Automatically converts uploaded images (JPG/JPEG/PNG/GIF) to WebP, including all WordPress sizes. == Description == Only WebP Uploads automatically converts your image uploads (JPG, PNG, GIF) to WebP format. It handles all image sizes generated by WordPress, ensuring your site serves optimized, modern image formats. Features: * **Automatic Conversion:** Converts images immediately upon upload. * **Space Saving:** Replaces original files with lighter WebP versions. * **Database Integration:** Updates WordPress metadata so the Media Library recognizes the file as WebP. * **Bulk Conversion:** Includes a tool to scan and convert existing images in your library. * **WP-CLI Support:** Manage conversions via command line using `wp onlywebp`. * **Smart Filename Sanitization:** Automatically cleans filenames (e.g., `maƱana.jpg` -> `manana.webp`). For non-Latin names (e.g., Japanese), it generates a secure unique ID to ensure compatibility. * **Security:** Checks for Imagick support and sanitizes filenames. == Installation == 1. Upload the plugin files to the `/wp-content/plugins/only-webp-uploads` directory, or install the plugin through the WordPress plugins screen directly. 2. Activate the plugin through the 'Plugins' screen in WordPress. 3. Use the Settings->Only WebP Uploads screen to configure your preferences. == Frequently Asked Questions == = Does this modify my original images? = Yes, this plugin is designed to **replace** your original uploads with WebP versions to save storage space. = Requirements? = You need the PHP `Imagick` extension installed and enabled on your server, with WebP support. == Screenshots == 1. General Settings / Plugin Configuration. 2. Bulk Optimization Tool / Media Library view. == Changelog == = 1.0.1 = * New: Added "Strict Filename Sanitization" toggle. * New: Rewritten UI with toggle switches and quality slider. * Fix: Prevent file overwrite when uploading files with the same name. = 1.0.0 = * Initial launch on WordPress.org = 0.4.1 = * Fix: Resolved issues reported by WordPress Plugin Review Team. * Fix: Properly enqueued admin scripts and styles. * Fix: Scoped sanitization filter to upload process only. * Fix: Corrected Text Domain to match plugin slug. = 0.4 = * Production release = 0.3.9 (RC)= * Fix: Translation corrections. * New: Added "Credits tab". = 0.3.8 (BETA)= * Security: Improved output escaping in admin dashboard. * Compliance: Standardized readme.txt and headers. = 0.3.7 (BETA) = * Refactor: Renamed internal references from `wua` to `onlywebp`. * Fix: Resolved text domain mismatch issues. * Security: Added warnings for bulk content replacement. = 0.3.6 (BETA) = * Fix: Resolved duplicated image issues. = 0.3.5 (BETA) = * Initial release. = 0.2.0 (ALFA) = * Base structure. = 0.1.0 (PRE-ALFA)= * Idea and concept.