== AltVision AI Text Generator ==
Contributors: eileen2k
Donate link: https://getsocialguide.com/altvision-ai-text-generator/
Tags: alt text, accessibility, seo, ai, images
Requires at least: 5.8
Tested up to: 6.8
Stable tag: 4.3.1
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: altvision-ai-text-generator
Domain Path: /languages

Automatically generate descriptive image alt text using AI to boost SEO and accessibility.

== Description ==
AltVision AI Text Generator helps WordPress users automatically generate alt text for images in their Media Library using AI. This improves accessibility, SEO, and user experience across your website.

### ✨ Features
* Generates missing image alt text using AI for clear, concise descriptions.
* Processes images one-by-one to ensure stability and prevent server timeouts.
* Respects API rate limits, especially for free tiers.
* Displays the total number of images missing alt text before you start.
* Live progress bar and log show exactly what's being processed.
* Simple admin dashboard to securely save your API key.
* Stores alt text automatically in the WordPress Media Library.
* Does not overwrite existing, manually-written alt text.

== Installation ==
1. Upload the plugin files to the `/wp-content/plugins/altvision-ai-text-generator/` directory, or install via the WordPress Plugin screen.
2. Activate the plugin through the “Plugins” menu.
3. Go to **Settings → AltVision AI** to enter your API key.
4. Navigate to **Media → AltVision AI** to see the total count and click “Start Alt Text Generation” to process images.

== Frequently Asked Questions ==

= Where do I get the API key? =
You can create a free key at [https://aistudio.google.com/app/apikey](https://aistudio.google.com/app/apikey). You must also enable the API and billing in your Google Cloud project.

= I'm getting an "HTTP 429: Quota Exceeded" error. Why? =
This means you have hit your API rate limit (often on free tiers). This plugin includes delays to help prevent this, but if you process a very large number of images or run it frequently, you might still hit a limit. Enabling billing usually provides much higher limits.

= How many images does it process at once? =
The plugin processes images one at a time with a short delay between each. This prevents server timeouts and respects API rate limits, ensuring a stable experience even on shared hosting.

= Will it overwrite existing alt text? =
No. The plugin only generates alt text for images that don’t have one.

= Is my data sent to the AI service? =
Yes. The image file and a text prompt are sent securely to the AI API to generate the description.

== Screenshots ==
1. Settings page showing the API key input field.
2. Media Tools page showing the total count of images and the "Start" button.
3. The live progress bar and log of generated alt text.
4. Generated alt text saved in the Media Library.

== Changelog ==
= 4.3 =
* Fixed final missing translator comments based on plugin check feedback.
= 4.2 =
* Fixed missing translator comments identified by plugin checker
= 4.1 =
* Added check to skip unsupported image formats (like GIF) that cause API errors.
* Updated count logic to only show supported images missing alt text.
* Added placeholder meta for skipped/errored images to prevent repeated attempts.
* Updated FAQ with supported formats.
= 4.0 =
* Renamed plugin from "Gemini AI Alt Text Generator" to "AltVision AI Text Generator".
* Updated all PHP class names, function prefixes, text domains, nonces, JS objects, and CSS IDs/classes to match the new name.
* Fixed missing translator comments.
= 3.7 =
* Fixed missing translator comments for `_n()` and `sprintf()`.
* Added escaping for output in `Exception` messages and `number_format_i18n()`.
* Replaced discouraged `strip_tags()` with `wp_strip_all_tags()`.
* Corrected `Stable tag` mismatch in readme.txt.
= 3.6 =
* Added missing translator comments based on plugin check feedback.
= 3.4 =
* Slowed down AJAX delay to 1000ms (1 second) to further prevent 429 errors.
= 3.3 =
* Slowed down AJAX delay to 500ms to better respect API rate limits.
= 3.2 =
* Updated Plugin URI and Author URI to be distinct URLs.
= 3.1 =
* Fixed all plugin check errors for WordPress.org submission.
= 3.0 =
* Switched to WordPress HTTP API (`wp_remote_post`) to meet plugin guidelines.
* Added `uninstall.php` for clean uninstallation.
* Enqueued JS/CSS in separate files.
* Fully internationalized (translation-ready).
= 2.2 =
* Fix for `MAX_TOKENS` error by increasing token limit to 8192.
* Fixed critical PHP syntax errors.
= 2.1 =
* Added total count of missing alt text to the main tool page.
* Implemented a percentage-based progress bar.
= 2.0 =
* Re-engineered to process images one-by-one to fix server timeouts.
* Added robust error checking (e.g., MAX_TOKENS, SAFETY).
= 1.0 =
* Initial public release.

== Upgrade Notice ==
= 3.7 =
Fixes all remaining errors from the WordPress.org plugin checker tool for security and internationalization.

= 3.6 =
Fixes missing translator comments required by WordPress.org.

= 3.4 =
Further slows down processing to prevent "429 Quota Exceeded" errors for users on free tiers.

= 3.3 =
This update slows down processing to prevent "429 Quota Exceeded" errors for users on free tiers.

== Credits ==
Developed by **Eileen** — [GetSocialGuide.com](https://getsocialguide.com/)
