=== Pixonix Local Image Optimizer ===
Contributors: suhanurrashid
Tags: image optimization, webp, avif, compress images, bulk optimize
Requires at least: 5.6
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 2.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Unlimited image optimization  Auto optimize on upload, Bulk optimize, WebP & AVIF conversion. No API key, no monthly fee, no limits.

== Description ==

**Pixonix Local Image Optimizer** is a powerful, zero-dependency WordPress plugin that optimizes your images locally on your server. No external APIs, no monthly subscriptions, no per-image limits.

= Key Features =

* **Automatic Optimization**  Images are optimized the moment they're uploaded
* **Bulk Optimization**  Optimize your entire existing media library in one click
* **WebP Conversion**  Generate WebP versions for modern browsers (30-50% smaller)
* **AVIF Conversion**  Generate AVIF versions for cutting-edge browsers (up to 50% smaller than WebP)
* **Progressive JPEG**  Creates progressive JPEGs for faster perceived loading
* **Metadata Stripping**  Remove EXIF, GPS, and camera data to shrink file size
* **Max Dimension Resize**  Automatically downscale oversized uploads
* **Savings Tracking**  See exactly how much storage space you've saved
* **Zero Dependencies**  Uses your server's built-in GD or ImageMagick library
* **Configurable Batch Size**  Tune for your server's capabilities

= How It Works =

1. Install and activate the plugin
2. Configure quality settings (sensible defaults are pre-set)
3. New uploads are automatically optimized
4. Use Bulk Optimize to process existing images
5. WebP/AVIF versions are auto-served via .htaccess rewrite rules

= Requirements =

* PHP 7.4 or higher
* GD Library or ImageMagick PHP extension
* Apache with mod_rewrite (for automatic WebP/AVIF serving)

== Installation ==

1. Upload the `pixonix-local-image-optimizer` folder to `/wp-content/plugins/`
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Go to **Image Optimizer** in the admin sidebar
4. Configure your preferred quality settings
5. Click **Start Bulk Optimization** to optimize existing images

== Frequently Asked Questions ==

= Does this plugin require an API key? =

No. All optimization happens locally on your server using GD or ImageMagick.

= Will it slow down my uploads? =

The optimization adds a small amount of processing time per image (typically under 1 second). For most sites, this is imperceptible.

= Does it work with Nginx? =

Image optimization works on any server. However, automatic WebP/AVIF serving via .htaccess requires Apache with mod_rewrite. For Nginx, you'll need to add rewrite rules manually.

= Can I re-optimize images? =

Yes! Use the "Re-optimize All" button to clear optimization data and run bulk optimization again with new settings.

= What happens when I uninstall? =

All plugin data (settings and optimization metadata) is cleanly removed. Your original images and any generated WebP/AVIF files remain untouched.

= Is it compatible with WooCommerce / Elementor / WoodMart? =

Yes. Pixonix Local Image Optimizer works with all themes and page builders that use the standard WordPress media library.

== Screenshots ==

1. Dashboard  Stats overview with animated counters and space savings
2. Bulk Optimization  Progress bar with real-time status updates
3. Settings  Quality sliders, format toggles, and batch configuration
4. System Info  Server capabilities at a glance

== Changelog ==

= 2.0.0 =
* Complete rewrite with professional admin UI
* Added AVIF conversion support with separate AVIF quality setting
* Added System Requirements Auto-Check with color-coded status, actionable advice, and interactive gauge animation
* Added non-intrusive administrative notice for critical server configuration issues
* Added savings tracking (before/after file sizes)
* Added configurable batch size (1-20 images per batch)
* Added max dimension resize option
* Added tab navigation (Dashboard / Settings / System Info)
* Added toast notification system
* Added animated stat counters
* Removed jQuery dependency (pure vanilla JavaScript)
* Security: Added capability checks on all AJAX handlers
* Security: Whitelist validation for library option
* Security: Uses insert_with_markers() for .htaccess management
* Performance: Replaced posts_per_page=-1 with efficient COUNT queries
* Added uninstall.php for clean data removal
* Added Settings link on Plugins page
* All strings internationalized (i18n-ready)
* Added error logging (when WP_DEBUG is enabled)
* Added PHP/WordPress version and memory limit to System Info

= 1.0.0 =
* Initial release

== Upgrade Notice ==

= 2.0.0 =
Major update with professional UI, AVIF support, automated system requirements health check, security hardening, and performance optimizations. All existing settings and optimization data are preserved.



