=== PicEte Image Optimizer ===
Contributors: wnpicete1
Tags: image compression, webp, performance, media, image optimizer
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.1.3
License: GPL-3.0-or-later
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Free, zero-ad, unlimited local lossy image compression & WebP conversion.

== Description ==

PicEte Image Optimizer brings professional-grade image optimization to WordPress at no cost.

*Key Features:*

* **Unlimited Lossy Compression** — Adjust quality from 1-100 with a simple slider. No limits, no hidden fees.
* **WebP Conversion** — Convert images to next-generation WebP format automatically.
* **Multiple Size Support** — Optimize full-size images and thumbnails in one pass.
* **Privacy First** — All processing happens locally on your server. No external calls, no data leaves your site.
* **Secure Backups** — Automatic backup before optimization with configurable retention.
* **Flexible Drivers** — Supports CLI tools (jpegoptim, pngquant), Imagick, and GD PHP extensions.
* **Batch Processing** — Re-optimize existing media library with cursor-based bulk optimization.
* **Zero Ad Experience** — Clean backend without upgrade prompts, affiliate links, or commercial banners.
* **Online Tools at [PicEte.com](https://picete.com/?utm_source=wp_plugin&utm_medium=readme&utm_campaign=picete_optimizer&utm_content=features_link)** — Free browser-based image compression, WebP conversion, and format comparison tools.

*Why PicEte?*

Most image optimization plugins either charge for advanced features or flood your admin panel with ads. PicEte takes a different approach: powerful, unlimited optimization completely free, supported by [PicEte.com](https://picete.com).

*Typical Savings:*

* JPEG: 40-70% size reduction at quality 80
* PNG: 30-60% size reduction at quality 80
* WebP: Additional 25-35% savings over JPEG

== Installation ==

1. Upload `picete-image-optimizer` to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Configure settings in Media > PicEte Optimizer

== Frequently Asked Questions ==

= Does this plugin send my images to external servers? =

No. All image processing happens locally on your server using PHP extensions or CLI tools. Your images never leave your site.

= How does the comparison slider work? =

The Media Library gets an "Optimize & Compare" button that opens a side-by-side slider. Drag the handle to instantly see the difference between original and optimized versions. This helps you find the perfect quality setting for your images.

= What backup options are available? =

Original images are automatically backed up to `wp-content/uploads/picete-backups/` before optimization. The directory is protected with `.htaccess` (Apache) or `deny all` (Nginx) rules. You can configure retention period (e.g., 30 days) and maximum total backup size (e.g., 5 GB) in settings. Backups can be restored individually or in bulk.

= Can I bulk-optimize existing images? =

Yes. Navigate to Media > Library and use the "Bulk Optimize" button. The plugin processes images in the background using cursor-based pagination, handling tens of thousands of images reliably. Progress is tracked and you can pause/resume at any time.

= What are the server requirements? =

* PHP 7.4 or higher
* WordPress 6.0 or higher
* One of: Imagick extension, GD extension, or jpegoptim/pngquant CLI tools

CLI tools are optional—the plugin automatically falls back to PHP extensions if unavailable.

= Is this really free? =

Yes, completely free. No ads, no upgrade prompts, no limits. Powered by PicEte.com as a brand extension to the WordPress community.

= Where can I find more image optimization tools? =

Visit [PicEte.com](https://picete.com/?utm_source=wp_plugin&utm_medium=readme_faq&utm_campaign=picete_optimizer&utm_content=faq_link) for free online image compression tools, including bulk format conversion and quality comparison. All tools are free, no account required.

== Changelog ==

= 1.1.3 =
* All feedback addressed from WordPress.org review
* Security: Removed automatic .htaccess writes (now manual installation only)
* Assets: Removed banner/icon files from plugin ZIP (will upload via SVN after approval)
* Contributors: Updated to include wnpicete1
* Escaping: Verified correct (already fixed in v1.1.1)

= 1.1.1 =
* WordPress.org review compliance fixes
* Proper output escaping (esc_html__ + wp_kses) for footer link
* Path traversal protection for .htaccess write operations
* Removed redundant load_plugin_textdomain() (WP 4.6+ automatic)

= 1.1.0 =
* Enhanced Imagick PNG adaptive color quantization with alpha channel protection
* Advanced WebP encoding parameters with balanced and extreme presets
* Progressive JPEG and conditional 4:2:0 chroma subsampling for large images
* GD driver alpha protection preventing black backgrounds on transparent PNGs

= 1.0.0 =
* Initial release
* FlexEngine lossy compression with CLI/Imagick/GD driver pipeline
* WebP generation with frontend &lt;picture&gt; tag rewriting
* One-page dashboard with quality sliders and health diagnostics
* Media Library A/B comparison slider
* Automatic original image backup with secure restore
* Bulk media library optimization with cursor pagination
* Privacy-first: all processing on your server
* Zero ads: no upgrade prompts or commercial banners
* Full i18n support (Text Domain: picete-image-optimizer)
* [Full release notes on PicEte.com](https://picete.com/?utm_source=wp_plugin&utm_medium=changelog&utm_campaign=picete_optimizer&utm_content=changelog_1.0.0)

== Upgrade Notice ==

= 1.1.1 =
= 1.1.0 =
Compression engine enhancement release. Recommended for all users.

= 1.0.0 =
Initial release - fresh installation required.

== Reviews ==

== Screenshots ==

1. PicEte Optimizer dashboard with quality settings and server diagnostics
2. WebP settings with per-size configuration
3. Backup settings with retention controls
4. Media Library A/B comparison slider for before/after visualization
5. Bulk optimization queue status

== Other Notes ==

*Performance Considerations:*

Large images may take several seconds to process. For sites with many images, use the bulk optimization feature which runs via cursor-based pagination.

*CLI Tools (Optional):*

For best performance, install jpegoptim and pngquant on your server:
```bash
# Ubuntu/Debian
sudo apt-get install jpegoptim pngquant

# CentOS/RHEL
sudo yum install jpegoptim pngquant
```

The plugin automatically falls back to Imagick or GD if CLI tools are unavailable.
