=== Super Duper Image Auto Optimizer ===
Contributors: shakib-khan
Donate link:
Tags: image optimization, webp, avif, compression, performance, speed
Requires at least: 6.1
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: trunk
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Reduce image sizes on upload and in bulk, strip EXIF, and generate WebP/AVIF with Imagick or GD — no external APIs.

== Description ==
**Super Duper Image Auto Optimizer** compresses newly uploaded images (JPEG/PNG/WebP), strips EXIF, and generates modern formats (WebP/AVIF when supported). It also includes a one-click bulk optimizer in the admin and a WP-CLI command for existing media.

**Highlights**
- Automatic optimization for new uploads (original + sizes)
- One-click bulk optimization (batched via AJAX, resume)
- WebP generation and AVIF when supported
- Imagick preferred; GD fallback
- No third-party services or tracking
- WP-CLI: `wp sdiao:bulk`

== Installation ==
1. Upload via **Plugins → Add New → Upload Plugin**.
2. Activate the plugin.
3. New uploads are optimized automatically.

== Usage ==
- **Bulk optimize:** Media → Super Duper Image Auto Optimizer → **Bulk Optimize**.
- **WP-CLI:** `wp sdiao:bulk`.

== FAQs ==
= Do I need to drag and drop into the plugin? =
No. It hooks into normal uploads and runs automatically.

= Does it generate WebP/AVIF for all sizes? =
Yes (AVIF requires Imagick with AVIF support).

== Privacy ==
Processes images locally; stores only minimal bulk progress (`sdiao_bulk_state`). No telemetry.

== Security ==
Nonce + capability checks on AJAX; escaped admin output; no remote code.

== Changelog ==
= 1.2.1 =
- Use proper `wp_enqueue_*` APIs (no inline scripts/styles).
- Prefix all identifiers with `sdiao_`/`SDIAO_`.
- Uninstall removes `sdiao_settings` and `sdiao_bulk_state`.
- Set Stable tag to `trunk` for initial import; after approval create `/tags/1.2.1/` and change Stable tag to `1.2.1`.