=== Era WebP Bulk Optimizer ===
Contributors: badea
Tags: webp, images, woocommerce, media, optimization
Requires at least: 5.8
Tested up to: 7.0
Stable tag: 1.0.0
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Bulk convert JPG and PNG uploads to WebP, update content URLs, switch WooCommerce media IDs safely, and keep rollback backups.

== Description ==

Era WebP Bulk Optimizer helps site owners convert existing JPG and PNG media library images to WebP in controlled batches.

The plugin keeps original files by default, records conversion results, can update hard-coded image URLs in content, and includes rollback support for media attachments that are switched to WebP.

= Features =

* Bulk scan and WebP conversion.
* Live optimization results with thumbnails, direct links, saved size, percentage, and elapsed time.
* WooCommerce-friendly media ID switch mode.
* Rollback media IDs to original JPG/PNG attachment metadata.
* Auto-convert new uploads.
* Regenerate missing WebP files.
* Compatibility checks for GD, Imagick, and uploads writability.
* CSV export report.

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/era-webp-bulk-optimizer/` directory, or install the plugin through the WordPress Plugins screen.
2. Activate the plugin through the Plugins screen in WordPress.
3. Open Tools > Era WebP Bulk to scan and convert images.

== Frequently Asked Questions ==

= Does this plugin delete original JPG or PNG files? =

No. Original files are kept by default.

= Does the plugin need Imagick? =

No. It can use either Imagick with WebP support or GD with WebP support.

= Can I roll back media attachments switched to WebP? =

Yes. When media IDs are switched to WebP, the original attachment metadata is saved for rollback.

== Screenshots ==

1. Bulk conversion dashboard and progress.
2. Optimization report with converted image details.
3. Rollback tools for switched media attachments.

== Recommended Workflow ==

1. Open Tools > Era WebP Bulk.
2. Run Dry Run.
3. Run Scan & Convert Bulk.
4. Keep Auto-convert new uploads enabled.
5. For WooCommerce, enable Switch new upload media IDs to WebP after conversion.

== Safety ==

Original files are kept by default. When Media IDs are switched to WebP, original attachment metadata is saved in erawebuo_original_attachment_data for rollback.

== Changelog ==

= 1.0.0 =

* Initial release.
