=== PackshotPhoto AI — Image SEO & Optimizer ===
Contributors: bartskol
Tags: image-seo, alt-text, image-optimizer, eu-ai-act, watermark, webp, avif
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.2.20
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Automate WordPress image SEO with AI: generate ALT texts, convert to WebP/AVIF, apply EU AI Act transparency watermarks (Art. 50), and rename files.

== Description ==

https://www.youtube.com/watch?v=pBMtGybe2bQ

= Supercharge your WordPress Image SEO and Loading Speed in One Click =

**PackshotPhoto AI** is a next-generation media optimization plugin that combines advanced artificial intelligence (Gemini 3 Flash Vision) with modern image conversion tools. It helps you automate Alt texts, captions, descriptions, and file naming while significantly reducing image sizes and remaining compliant with AI regulations.

= Key Features =
*   **AI-Powered SEO Metadata:** Automatically analyzes images to generate highly optimized, context-aware Alt texts, captions, descriptions, and slugs in multiple languages (Polish, English, German, French, Spanish, and more).
*   **EU AI Act Compliance Watermarking:** Effortlessly stamp official and custom EU AI Act transparency labels (Article 50 compliance) on AI-generated or modified images, with live position/scale/padding controls, presets, custom badge uploads, and automatic upload & bulk stamping.
*   **WebP & AVIF Conversion:** Convert standard JPEG/PNG/GIF files to next-gen formats (WebP and AVIF) to slash load times and save server space.
*   **Smart Image Resizing:** Automatically resize oversized uploads to a safe maximum resolution to prevent page bloating.
*   **Safe Physical Renaming:** Physical file renaming on the server using SEO-friendly slugs, with automated link updating throughout your site's posts.
*   **One-Click Restore:** Complete backup and restore system that lets you revert to original files, metadata versions, or file formats at any time.
*   **50% OFF Welcome Offer:** New users receive 10 free AI trial credits upon installation, plus an exclusive 50% discount on all credit packages during their first 12 hours.

Learn more and get support on our official website: [PackshotPhoto AI](https://packshotphoto.com/?utm_source=wporg&utm_medium=readme&utm_campaign=plugin_page)

== Third-Party Services ==

This plugin relies on external third-party services to deliver AI image analysis, license validation, telemetry, and credit processing. In accordance with the WordPress.org plugin guidelines, the terms, privacy policy, and service details are outlined below:

1. **PackshotPhoto AI Cloud API (Supabase)**
   * **Service URL / Endpoint:** https://duubkqjowabuevqudtbk.supabase.co
   * **Purpose:** Handles AI image analysis (SEO metadata generation), license validation checks, billing checkout sessions, and credit status synchronizations.
   * **Data Sent:** Image URLs, user email, site URL, and subscription license keys. Sent only when the user requests AI generation, validates a license key, or registers/purchases credits.
   * **Terms of Service:** https://supabase.com/terms
   * **Privacy Policy:** https://supabase.com/privacy

2. **PackshotPhotoAI API**
   * **Service URL / Endpoint:** https://api.promediamanager.com
   * **Purpose:** Handles subscription license validation and deactivation events.
   * **Data Sent:** License key, site URL, and current version. Sent when activating or deactivating a license key.
   * **Terms of Service:** https://packshotphoto.com/rodo.html
   * **Privacy Policy:** https://packshotphoto.com/polityka-prywatnosci.html

3. **Stripe**
   * **Service URL / Endpoint:** https://stripe.com
   * **Purpose:** Payment gateway handling credit purchases securely (all card information is processed directly by Stripe).
   * **Data Sent:** Billing and payment details. Sent only during manual checkout redirects.
   * **Terms of Service:** https://stripe.com/checkout/legal
   * **Privacy Policy:** https://stripe.com/privacy

== Installation ==

1.  Upload the `packshotphoto-ai` folder to your `/wp-content/plugins/` directory, or search for "PackshotPhoto AI" in your WordPress admin dashboard under **Plugins > Add New**.
2.  Activate the plugin through the **Plugins** screen in WordPress.
3.  Navigate to **Tools > PackshotPhoto AI** to configure your settings (including your connection or custom API keys).
4.  Visit your **Media Library** (List View) to start generating AI metadata and converting formats.

== Frequently Asked Questions ==

= Do I need an API key to use the AI features? =
By default, the plugin connects to our central proxy service. Upon connecting, you receive 10 free credits to test the AI capabilities. Alternatively, you can configure your own custom OpenAI-compatible endpoint and model API key under the Developer tab.

= Is there a discount for new users? =
Yes! All new installations automatically qualify for an exclusive 50% discount on all credit packages for their first 12 hours after activation.

= Is it safe to rename images that are already used in posts? =
Yes, but we recommend using the "Safe Rename (Title & Slug Only)" option. If you perform a physical file rename, the plugin will attempt to update existing image links in your database. However, backing up your database before bulk operations is always a best practice.

= Where are the original image backups stored? =
Backups are safely stored in your `wp-content/uploads/packshotphoto-trash/` directory and are automatically cleaned up after 30 days.

== Screenshots ==

1. Generate AI alt text, captions and descriptions directly in the Media Library
2. Bulk generate ALT texts and convert images to WebP/AVIF
3. Convert JPEG to WebP and AVIF — up to 80% smaller images
4. Safe One-Click Restore: revert to original images and metadata anytime
5. Automatically resize oversized uploads and set global SEO context
6. Start with 10 free AI credits immediately after installation
7. EU AI Act compliance settings and 12 official presets for watermarking
8. Customize watermark placement, scale, opacity, margins and live preview
9. Sample product photo stamped with the EU AI Act AI GENERATED watermark

== Changelog ==

= 1.2.20 =
* Feature: EU AI Act (Article 50) compliance watermarking module with 12 official badge styles, custom graphic support, position, opacity and padding customization.
* Feature: 50% OFF welcome discount on all credit packages for new installations during the first 12 hours.
* Feature: Automatic watermarking on upload and bulk Media Library labelling.
* Improvement: Full AVIF format support for watermarking and conversion across GD and Imagick engines.
* Improvement: Perceptually balanced watermark scaling across all image resolutions (300px to 4000px+).
* Improvement: Instant cache-busting in WordPress admin list tables for immediate visual updates.
* Fix: Removed duplicate page reloads during asynchronous queue processing.
