=== Nish Image Optimizer ===
Contributors: nishatbd31, freemius
Tags: image optimizer, image compression, webp, avif, performance
Requires at least: 5.6
Tested up to: 6.8
Stable tag: 1.0.2
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Lightweight WordPress image optimizer. Compress JPEG, PNG, WebP, and AVIF automatically for faster websites.

== Description ==

**Nish Image Optimizer** is a fast and simple WordPress plugin designed to make your website lighter and faster.  
It automatically compresses and converts your images into modern formats like **WebP** and **AVIF**, while also supporting **JPEG** and **PNG**.  

By optimizing images directly inside WordPress, you can dramatically improve **page speed**, **Core Web Vitals**, and **SEO rankings** — without relying on third-party APIs or external services. Nish Image Optimizer runs 100% locally on your server using WordPress’ built-in image libraries (GD/Imagick).

### 🚀 Key Features
- ✅ **Automatic Optimization on Upload** – new images are optimized instantly.  
- ✅ **Bulk Optimization** – optimize your entire Media Library with a single click.  
- ✅ **Multiple Formats** – WebP, AVIF, JPEG, PNG.  
- ✅ **Skip Already Optimized Images** – saves time and resources.  
- ✅ **Minimum File Size Skip** – ignore small icons or logos.  
- ✅ **Fallback Detection** – if AVIF/WebP isn’t supported, it falls back to JPEG/PNG automatically.  
- ✅ **WP-CLI Support** – for developers who want command-line optimization.  
- ✅ **Lightweight & Fast** – no external API calls, no credits, no monthly limits.  
- 🔑 **Pro Features** – per-image re-optimization, advanced PNG → WebP/AVIF handling, and more.

### 🔑 Why Choose Nish Image Optimizer?
- 100% **free to start** with essential optimization features.  
- **Pro upgrade** unlocks advanced image handling for power users.  
- Built for speed, simplicity, and **WordPress performance best practices**.  

---

== Installation ==

1. Upload the plugin files to `/wp-content/plugins/nish-image-optimizer` or install it directly from the Plugins screen.  
2. Activate the plugin via **Plugins → Installed Plugins**.  
3. Go to **Dashboard → Image Optimizer** to configure settings.  
4. Choose your output format and quality, then start optimizing.  

---

== Frequently Asked Questions ==

= Does this plugin replace my original images? =  
Yes. Nish Image Optimizer overwrites originals with optimized versions by default to save disk space.  

= Can I convert to WebP or AVIF? =  
Yes, if your hosting server supports GD/Imagick with WebP/AVIF enabled. Otherwise, the plugin will automatically fall back to JPEG/PNG.  

= Do I need credits or an external API? =  
No. The plugin runs **100% locally** inside WordPress. No external services, no hidden costs.  

= Will this break my existing images or links? =  
No. The plugin updates WordPress Media Library references so your posts/pages continue working normally.  

= Can I bulk optimize my Media Library? =  
Yes! You can optimize your entire Media Library in safe batches with a progress bar.  

= What happens if optimization fails? =  
Nish Image Optimizer automatically falls back to a supported format (e.g., JPEG).  

---

== Screenshots ==

1. Plugin settings page (choose format and quality).  
2. Bulk optimization with progress bar.  
3. Media Library with optimization stats.  
4. Per-image re-optimization popup (Pro feature).  

---

== Changelog ==

== Upgrade Notice ==

= 1.0.2 =
WP optimized

= 1.0.1 =
* Initial public release.  
* Upload-time optimization.  
* Bulk optimization with skip logic.  
* WP-CLI support.  
* Fallback detection.  

== Upgrade Notice ==

= 1.0.0 =
First release – Nish Image Optimizer helps you convert and compress images into modern formats for faster websites.
