=== Shahan Bulk Image Compression ===
Contributors: shahanewasalam
Tags: image optimizer, webp, image compression, speed optimization, bulk smush
Requires at least: 5.0
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

A powerful, safe, and automated bulk image optimizer. Convert JPGs and PNGs to WebP, shrink dimensions, and automatically update content URLs.

== Description ==

**Pro Image Optimizer** is a lightweight, advanced image compression engine designed to drastically reduce your media library size and improve your website's page load speed. 

It handles everything from background WebP conversion to database-level URL replacement, ensuring your live site never breaks when file extensions change.

### Key Features
* **WebP Conversion:** Safely converts bulky `.jpg` and `.png` files into modern, highly compressed `.webp` formats.
* **Auto-Update Database URLs:** Automatically scans your pages and posts to update the image links from `.jpg/.png` to the new `.webp` extension.
* **Safe Mode Guarantee:** If compressing an image or converting it to WebP results in a larger file size, the plugin automatically discards the compressed version and keeps your original file untouched.
* **Massive Image Resizing:** Automatically scales down oversized raw camera uploads (e.g., limits a 6000px image to 2048px) before compression.
* **Live AJAX Progress Bar:** Process thousands of images in batches with a smooth, interactive popup interface that prevents server timeouts and avoids full-page reloads.
* **Automated Cleanup:** Safely purges old, unneeded thumbnail sizes from your server to save disk space after a successful WebP conversion.
* **Filter Options:** Easily filter your media library dashboard to target only JPGs, PNGs, or WebP files.

== Frequently Asked Questions ==

= Will this plugin break my images if the format changes to WebP? =
No. If you check the "Auto-Update URLs" box, the plugin automatically searches your WordPress database and updates the hardcoded links in your posts and pages to point to the new WebP file.

= What happens if compression makes the file larger? =
The plugin features a "Safe Mode" that creates a temporary file first. If the resulting file is larger than the original, it skips the image entirely and retains your original file.

= Will this crash my server if I have thousands of images? =
No. The plugin utilizes an asynchronous AJAX queue to process images one by one in the background, ensuring your PHP memory limits are never exceeded.

== Screenshots ==

1. The main dashboard showing media library stats and filter controls.
2. The interactive live progress modal processing a batch of images.

== Changelog ==

= 1.0.0 =
* Initial public release.
* Introduced WebP conversion engine.
* Added AJAX progress modal and background batch processing.
* Integrated auto URL database replacement feature.
* Added Developer dismissible footer.