=== WP Image Optimizer ===
Contributors: wpiteam
Tags: images, optimization, webp, avif, responsive, performance, wasm
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Stable tag: 0.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Optimize images to WebP and AVIF with responsive variants using browser-based WASM processing. Zero server load.

== Description ==

WP Image Optimizer converts your images to modern formats (WebP and AVIF) with responsive breakpoints, entirely in the browser using WebAssembly. No server-side image extensions (Imagick, GD) are required.

**Key Features**

* **WebP & AVIF conversion** — Generate next-gen image formats with configurable quality
* **Browser-based WASM processing** — All heavy lifting happens in your browser; your server stays fast
* **Responsive breakpoints** — Define custom breakpoints per profile for mobile, tablet, and desktop
* **Profile system** — Create reusable optimization profiles (Hero, Content, Grid, WooCommerce)
* **Bulk processor** — Select multiple images and optimize them in one batch
* **Automatic rendering** — Replace `<img>` tags with `<picture>` elements for optimal browser delivery
* **Media Library integration** — See optimization status at a glance with the "Optimized" column
* **Payload hashing** — Skip re-processing when config hasn't changed
* **Secure REST API** — Nonce-verified endpoints with rate limiting

= Free vs Pro =

The free version uses browser-based WASM processing. The Pro version adds:

* Automatic optimization on upload (no browser tab needed)
* Cloud-powered server-side processing
* SSIM quality metric
* Custom watermarking
* Background removal (AI)
* CDN integration
* Priority support

== Installation ==

1. Upload the `wp-image-optimizer` folder to `/wp-content/plugins/`
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Navigate to **Image Optimizer** in the admin sidebar
4. Configure your profiles and settings
5. Go to **Bulk Processor** to optimize your images

== Frequently Asked Questions ==

= Does this require Imagick or GD? =

No. WP Image Optimizer processes images in the browser using WebAssembly. No server-side image extensions are needed.

= What image formats are supported? =

The plugin converts to WebP and AVIF. Source images can be JPEG, PNG, or GIF.

= Will this slow down my server? =

No. All image processing happens in your browser via WebAssembly. The server only stores the optimized files.

= Is there a file size limit? =

Images larger than 8000px on either side or 50MB are skipped to prevent browser memory issues.

= What happens when I delete an image? =

All derived (optimized) files, metadata, and cached markup are automatically cleaned up.

== Changelog ==

= 0.1.0 =
* Initial release
* WebP and AVIF conversion via browser WASM
* Profile system with responsive breakpoints
* Bulk processor with retry logic
* Media Library "Optimized" column and row actions
* Automatic `<picture>` tag rendering
* REST API with nonce verification and rate limiting
* Payload hashing to skip unnecessary re-processing
* WP-Cron job cleanup
* Complete uninstall cleanup
