=== ProductImageUpscale – AI Image Upscaler ===
Contributors: puskalkafle
Tags: image upscaler, woocommerce, product images, media library, image enhancement
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Upscale and enhance product images directly from the WordPress Media Library using AI. Supports 2x, 4x, and 8x enlargement.

== Description ==

Product Image Upscale connects your WordPress site to the [productimageupscale.com](https://www.productimageupscale.com) service, letting you upscale images at 2x, 4x, or 8x directly from the Media Library. It is designed for WooCommerce stores and any WordPress site that needs higher-resolution images.

When you click "Upscale", the plugin sends the image to the Product Image Upscale API, which processes it and returns an enhanced version. The original file is replaced and all thumbnails are regenerated automatically.

= Features =

* **One-click upscale** — Enhance any image from the Media Library list view or the attachment edit screen
* **Multiple scale factors** — Choose 2x, 4x, or 8x per image or set a default
* **Material-aware processing** — Optional texture modes (Model, Fabric, Leather) for specialized product photography
* **Batch processing** — Select multiple images and upscale them in bulk from the Media Library
* **Automatic replacement** — The upscaled image replaces the original file and thumbnails are regenerated
* **Status indicators** — See at a glance which images have already been upscaled

= How It Works =

1. Install the plugin and enter your API key from [productimageupscale.com](https://www.productimageupscale.com).
2. Navigate to your Media Library.
3. Click "Upscale" on any image.
4. The plugin sends the image to the API, receives the enhanced version, and replaces the original file.

= Third-Party Service =

This plugin relies on the **Product Image Upscale** external service to process images.

When you click "Upscale", the following data is sent to the Product Image Upscale API:

* The public URL of the image
* Your selected upscale factor (2x, 4x, or 8x)
* Your selected texture type (Model, Fabric, Leather, or None)

Data is sent only when a site administrator explicitly triggers an upscale action. No data is sent automatically or in the background.

* **Service website:** [https://www.productimageupscale.com](https://www.productimageupscale.com)
* **Terms of Service:** [https://www.productimageupscale.com/terms](https://www.productimageupscale.com/terms)
* **Privacy Policy:** [https://www.productimageupscale.com/privacy](https://www.productimageupscale.com/privacy)

**Requirements:**

* An active account at [productimageupscale.com](https://www.productimageupscale.com)
* A valid API key (available from the Integrations page in your dashboard)

== Installation ==

1. Upload the `product-image-upscale` folder to the `/wp-content/plugins/` directory, or install the plugin through the WordPress Plugins screen.
2. Activate the plugin through the "Plugins" screen in WordPress.
3. Go to **Media > Product Image Upscale** to enter your API key.
4. Start upscaling images from your Media Library.

== Frequently Asked Questions ==

= Where do I get an API key? =

Sign up at [productimageupscale.com](https://www.productimageupscale.com), then visit the Integrations page in your dashboard to generate an API key.

= What image formats are supported? =

JPEG and PNG images are supported. Images must be under 50 MB and no larger than 1600x1600 pixels.

= Does upscaling replace the original image? =

Yes. The original file in the Media Library is replaced with the upscaled version and all thumbnails are regenerated automatically.

= Can I upscale multiple images at once? =

Yes. Select images in the Media Library list view and choose "Batch Upscale with Product Image Upscale" from the Bulk Actions dropdown.

= What upscale factors are available? =

You can upscale images by 2x, 4x, or 8x. For example, a 400x400 image becomes 3200x3200 at 8x.

= What if processing takes a long time? =

The plugin polls the API for up to 90 seconds. If processing takes longer, refresh the page later to check the status.

== Screenshots ==

1. Settings page with API key configuration.
2. Media Library with one-click upscale button and status indicators.
3. Single attachment edit screen with upscale controls in the sidebar.

== Changelog ==

= 1.0.0 =
* Initial release.
* One-click and bulk upscaling from the Media Library.
* Configurable upscale factor (2x, 4x, 8x).
* Material-aware texture selection for product photography.
* Automatic file replacement with thumbnail regeneration.

== Upgrade Notice ==

= 1.0.0 =
Initial release.
