=== Smart Alt Image Meta ===
Contributors: webeto, shubhank
Tags: images, alt text, metadata, seo
Requires at least: 5.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 2.1.5
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Intelligently optimize image metadata - titles, alt text, and descriptions using your site identity. 100% Free & Unlimited.

== Description ==

Smart Alt Image Meta automatically optimizes your image metadata including titles, alt text, and descriptions. It intelligently combines your site name with cleaned filenames to create consistent, SEO-friendly metadata for all your images.

**How It Works:**

Your site name + cleaned filename = Perfect metadata

**What Gets Removed:**
- 🔢 **Numbers** - "IMG_123.jpg" becomes "IMG"
- ➖ **Special Characters** - "my-image-123.jpg" becomes "My Image"
- 🌀 **Underscores and Dashes** - "product_photo-001.jpg" becomes "Product Photo"

**Examples:**

| Site Name | Original Image | Result |
|-----------|---------------|---------|
| My Awesome Blog | IMG_123.jpg | My Awesome Blog IMG |
| EcoLiving Tips | screenshot-2024-01-01.png | EcoLiving Tips Screenshot |
| Tech Reviews Pro | product-photo-001.jpg | Tech Reviews Pro Product Photo |

**🔥 Bulk Processing - 500+ Images in One Click!**

Process your entire media library instantly. Whether you have 50 or 5000 images, the plugin handles them all in batches of 50 to prevent server timeout, with a real-time progress bar showing exactly what's happening.

**⏹️ Stop & Resume**
Don't want to wait? You can stop the process anytime and resume later. Your progress is saved automatically.

**✏️ Custom Image Site Name**
Want to use a different name for image metadata than your WordPress site name? You can set a custom name directly from the plugin settings page. This does NOT change your WordPress site name.

== Features ==

* 🤖 **Smart Auto-Optimization** - New uploads are automatically processed
* 📦 **Bulk Processing** - Optimize 500+ images with one click
* 📊 **Real-time Progress** - Live progress bar with percentage tracking (0% to 100%)
* ⏹️ **Stop & Resume** - Stop processing anytime and resume later
* ✏️ **Custom Site Name** - Use a different name just for image metadata
* ↩️ **Undo Changes** - Revert any image to original state instantly
* 🎯 **SEO Optimized** - Clean titles, alt text, and descriptions
* ♾️ **100% Free** - No limitations, no premium version

== Screenshots ==

1. Smart Alt Image Meta - Main dashboard showing statistics and features
2. Bulk optimization in progress with real-time progress bar
3. Format template preview with examples
4. Custom site name editor - only affects image metadata
5. Stop button - pause processing anytime

== Installation ==

1. Upload the `smart-alt-image-meta` folder to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Go to **Smart Alt Image Meta** in the admin menu to run bulk optimization

== Frequently Asked Questions ==

= Does this change my actual image filenames? =

No, only the metadata (title, alt text, description) is changed. Your actual filenames on disk remain the same.

= Can I undo the changes? =

Yes! Use the "Undo" feature to revert all images to their original state.

= Is this really free? =

Yes, 100% free with no limitations. No premium version, no hidden costs.

= How many images can I process at once? =

You can process unlimited images. The plugin processes in batches of 50 to prevent server timeout.

= Can I stop the process midway? =

Yes! Click the "Stop Processing" button anytime. Your progress is saved and you can resume later.

= Can I use a different site name for images? =

Yes! You can set a custom "Image Site Name" in the plugin settings. This only affects image metadata and does not change your WordPress site name.

= What PHP version is required? =

PHP 7.4 or higher is required.

= Does it work with other document types? =

No, the plugin only processes image files (jpg, png, gif, webp, etc.). Other documents are not affected.

== Changelog ==

= 2.1.5 =
* Fixed 100% stuck issue - progress bar now completes correctly
* Fixed stop button functionality
* Added proper progress validation
* Improved error handling for AJAX requests
* Added retry mechanism for failed requests

= 2.1.4 =
* Fixed 99% stuck issue with progress calculation
* PHP 7.4+ compatible

= 2.1.3 =
* Added Stop & Resume functionality
* Added custom Image Site Name editor
* Fixed file type filtering

= 2.1.2 =
* Fixed CSS/JS enqueue with proper version parameters

= 2.1.1 =
* Fixed wp_enqueue usage with proper registration

= 2.1.0 =
* Initial release

== Upgrade Notice ==

= 2.1.5 =
Critical update: Fixed 100% stuck issue and stop button. Recommended for all users.

= 2.1.4 =
Fixed progress calculation issues.

= 2.1.3 =
Major update: Added Stop & Resume, Custom Site Name.

= 2.1.2 =
GUI fixes and code refactoring.

= 2.1.0 =
First stable release.