=== LS – AI Image Pipeline ===
Contributors: lakestylez, freemius
Tags: image, upscale, ai, sftp, convert
Requires at least: 5.0
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 images with AI, convert formats, resize, rename and transfer files via SFTP – right inside the WordPress Media Library.

== Description ==

LS – AI Image Pipeline is a professional image processing toolkit that lives inside the WordPress Media Library. It is built for photographers, designers, and content creators who need an automated, high-quality image workflow without leaving WordPress.

The plugin combines state-of-the-art AI image enhancement with a flexible file workflow and an optional SFTP bridge to remote servers.

= Key Features =

* **AI Image Upscaling**: Enhance image resolution up to 4x using Real-ESRGAN via the Replicate API.
* **SFTP Transfer**: Send original or processed images to remote servers using the native PHP `ssh2` extension.
* **Bulk Processing**: Run upscaling, resizing, conversion, and SFTP transfers on many images at once.
* **Multiformat Conversion**: Convert images between JPG, PNG, and WEBP to optimize for the web.
* **Smart Renaming**: Sanitize and rename image files while keeping WordPress metadata in sync.
* **Interactive Media UI**: A comparison slider to view AI enhancements side-by-side with the original.

= External services =

AI upscaling is performed through the third-party Replicate API (https://replicate.com/). You bring your own Replicate API token; image data you choose to upscale is sent to Replicate for processing. Please review Replicate's terms of service and privacy policy: https://replicate.com/terms and https://replicate.com/privacy.

== Installation ==

1. Upload the `ls-ai-image-pipeline` folder to the `/wp-content/plugins/` directory, or install it through the WordPress plugins screen.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Navigate to **Tools > LS Image Pipeline** to configure your Replicate API token and (optionally) your SFTP credentials.

== Frequently Asked Questions ==

= Do I need a Replicate API key? =
Yes. To use the AI upscaling feature you need an API token from [Replicate](https://replicate.com/).

= What is required for SFTP transfer? =
SFTP transfer uses the native PHP `ssh2` extension. If your server does not have the `ssh2` extension installed, the upscaling, conversion, resizing and renaming features still work; only the remote SFTP transfer will be unavailable.

= Does upscaling send my images to an external service? =
Yes. Images you choose to upscale are sent to the Replicate API for processing. No image data leaves your site unless you trigger an upscale or an SFTP transfer.

== Screenshots ==

1. Media Library row actions: Upscale, Duplicate, Send via SFTP and Upscale & Send.
2. SFTP and Replicate API settings page.
3. Bulk actions: convert, upscale, resize, duplicate and SFTP transfer for many images at once.
4. The attachment detail modal with the full Image Pipeline action panel (convert, upscale, downsize, rename, SFTP).
5. Side-by-side before/after comparison slider after AI upscaling.

== Changelog ==

= 1.0.0 =
* Initial release.
* AI upscaling with Real-ESRGAN via the Replicate API.
* SFTP transfer via the PHP ssh2 extension.
* Multiformat conversion, resizing, and renaming.
* Bulk processing and multilingual support.
