=== Pixalia Image Assistant ===
Contributors: pixalia
Tags: ai, image generation, featured image, thumbnail, ogp
Requires at least: 6.2
Tested up to: 6.9
Requires PHP: 8.2
Stable tag: 1.0.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Pixalia Image Assistant manages featured images and generates high-quality AI images directly within WordPress using the Pixalia API.

== Description ==

Pixalia Image Assistant helps you manage your WordPress featured images (thumbnails) efficiently. It combines a **Free Featured Image Checker** with a powerful **AI Image Generator** powered by Pixalia.

### Free Features (No Account Required)

* **Eyecatch Checker (Featured Image Audit):**
    Automatically scans your published posts and identifies those missing a Featured Image. You can quickly see which articles need attention directly from the Posts list. This feature is completely free and works without a Pixalia account.
* **OGP Image Preview:**
    Preview how your Featured Image will look when shared on social media (SNS).

### Premium Features (Requires Pixalia Account)

* **AI Image Generation:**
    Generate unique, high-quality images from text descriptions, post titles, or content directly within the Post Editor with just one click.
* **Seamless Integration:**
    Generated images are automatically saved to your Media Library and can be instantly set as the Featured Image or inserted directly into the post content.
* **Style Customization:**
    Choose from various styles (Anime, Realistic, 3D, etc.) and aspect ratios to match your site's design.

### 3rd Party Service Disclaimer

To use the **AI Image Generation** feature, this plugin connects to the **Pixalia API**.
Pixalia is an external service that provides AI image generation.

* **Service Name:** Pixalia
* **Service URL:** [https://pixalia.me/](https://pixalia.me/)
* **Account Requirement:** You need a Pixalia account and API Key for image generation features. (Not required for the Eyecatch Checker).
* **Pricing:** The plugin and the Eyecatch Checker are free. Generating images requires points on the Pixalia platform.
* **Terms of Service:** [https://pixalia.me/terms-en](https://pixalia.me/terms-en)
* **Privacy Policy:** [https://pixalia.me/policy-en](https://pixalia.me/policy-en)

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/pixalia-image-assistant` directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the 'Plugins' screen in WordPress.

== Usage ==

### 1. Check for Missing Featured Images (Free)

1. Go to **Pixalia > Settings**.
2. Click the **"Bulk Check"** button to scan the status of existing posts.
3. Go to the **Posts > All Posts** screen. You will see the Featured Image status for each post.

### 2. Generate AI Images (Premium)

**Setup:**
1. Go to **Pixalia > Settings**.
2. Enter your **Pixalia API Key** to enable Premium features.
3. (Optional) Set the default Art Style and Aspect Ratio.
4. Save changes.

**How to Generate:**
* **For Featured Images:**
    Open the post editor. In the sidebar "Pixalia Assistant" menu, go to **Featured Image** and click the **Generate** button.
* **For Section Images:**
    Open the post editor. In the sidebar "Pixalia Assistant" menu, go to **Section Image**. Click the **Generate & Insert** button for the specific section where you want to add an image.

== Frequently Asked Questions ==

= Is this plugin free? =

Yes. The **Eyecatch Checker** feature is 100% free to use forever.
The **AI Image Generation** (Premium features) requires a Pixalia account and consumes points on the Pixalia service.

= Do I need a Pixalia account to use the Checker? =

No. You can use the "Eyecatch Checker" feature without connecting to the Pixalia API. An account is only needed when you want to generate images.

= Where are the generated images saved? =

Images are saved directly to your WordPress Media Library (`wp-content/uploads` folder).

== Screenshots ==

1. **Eyecatch Checker** - Quickly identify posts that are missing featured images (Free feature).
2. **Social Media Preview** - Preview how your featured image looks when shared on platforms like X (Twitter) or Facebook (Free feature).
3. **Featured Image Generator** - Generate unique AI thumbnails directly from the post editor sidebar.
4. **Content Image Generator** - Generate and insert context-aware images directly into specific content sections.
5. **Settings Page** - Enter your Pixalia API Key to enable AI features.

== Changelog ==

= 1.0.3 =
* Version 1.0.3 update.
* Improved usability

= 1.0.2 =
* Version 1.0.2 update.
* Fixed internationalization support for JavaScript strings.

= 1.0.1 =
* Version 1.0.1 update.

= 1.0.0 =
* Initial release.