=== Danava Image Processor ===
Contributors: danava-ai
Tags: image processing, ai, image editor, woocommerce, gallery, product images
Requires at least: 5.0
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Process and enhance WordPress gallery and WooCommerce product images using Danava AI technology.

== Description ==

Danava Image Processor is a powerful WordPress plugin that leverages artificial intelligence to process, enhance, and transform your website images. Whether you're running an e-commerce store or managing a content-rich website, this plugin helps you create professional-quality images with just a few clicks.

= Key Features =

* **AI-Powered Image Processing**: Transform images using advanced AI models (Gemini)
* **WooCommerce Integration**: Seamlessly edit and enhance product images
* **Custom Prompts**: Create and save custom image editing prompts for consistent results
* **Image Gallery**: View and manage all your AI-processed images in one place
* **Credit-Based System**: Track your credit balance and purchase processing packages as needed
* **Persian Language Support**: Fully translated interface for Persian users
* **Professional Templates**: Pre-configured prompts for common image enhancements:
  * Professional Studio Settings
  * Quality Enhancement
  * White Background Removal
  * Shadow and Depth Effects
  * Minimal Style Conversion
  * Professional Lighting
  * Product Zoom

= How It Works =

1. Configure your Danava API key in the settings
2. Select images from your WordPress media library or WooCommerce products
3. Choose a preset prompt or create your own custom prompt
4. Let AI process your images
5. Apply the results to your products or save to your media library

= WooCommerce Features =

* Select and edit product images directly
* Apply processed images as featured images, gallery images, or both
* Drag and drop to reorder product gallery images

= Use Cases =

* **E-commerce**: Create consistent, professional product photos
* **Content Marketing**: Enhance blog post images
* **Social Media**: Generate eye-catching visuals
* **Product Photography**: Remove backgrounds and add professional lighting
* **Image Restoration**: Improve quality of older or low-resolution images

== Installation ==

= Automatic Installation =

1. Log in to your WordPress admin panel
2. Navigate to Plugins > Add New
3. Search for "Danava Image Processor"
4. Click "Install Now" and then "Activate"

= Manual Installation =

1. Download the plugin zip file
2. Log in to your WordPress admin panel
3. Navigate to Plugins > Add New > Upload Plugin
4. Choose the downloaded zip file and click "Install Now"
5. After installation, click "Activate"

= Configuration =

1. After activation, go to Danava > Settings in your WordPress admin menu
2. Get your API key from [Danava AI](https://danava-ai.ir/vendor/api-key/)
3. Enter your API key in the settings page
4. (Optional) Purchase credit from [Danava Credit Plans](https://danava-ai.ir/payment/credit_plans/)
5. Configure your preferred prompts
6. Start processing images!

== Frequently Asked Questions ==

= Do I need an API key to use this plugin? =

Yes, you need a Danava API key to use this plugin. You can obtain one for free from [Danava AI](https://danava-ai.ir/vendor/api-key/).

= How does the credit system work? =

The plugin uses a credit-based system. Each image processing operation consumes credits from your account. You can purchase credit packages from the Danava website and monitor your remaining balance directly in the plugin settings.

= Is WooCommerce required? =

No, WooCommerce is optional. The plugin works with standard WordPress media library images. However, if WooCommerce is installed, you'll get additional features for product image management.

= Can I create custom image editing prompts? =

Yes! In the Danava settings page, you can create, edit, and manage custom prompts for image processing. The plugin comes with several pre-configured prompts, but you can add as many custom ones as you need.

= What image formats are supported? =

The plugin supports all standard image formats that WordPress supports, including JPG, PNG, and GIF.

= Can I use this plugin in languages other than English? =

Yes, the plugin is translation-ready and currently includes full Persian (Farsi) language support. Additional language translations can be added.

= Where can I see my processed images? =

All processed images are available in the Image Gallery section (Danava > Image Gallery). From there, you can view details, download, or apply them to your products.

= Can I revert changes made to images? =

The plugin doesn't modify your original images. Processed images are saved as new files, so your originals remain intact.

== Screenshots ==

1. Settings page with API configuration and credit balance
2. Image editor interface with prompt selection
3. WooCommerce product image selector
4. Image gallery showing processed images
5. Custom prompt management
6. Product image application interface

== Changelog ==

= 1.1.0 =
* Added Persian language support
* Enhanced WooCommerce integration
* Improved image gallery interface
* Added custom prompt management
* Better error handling and user feedback
* UI/UX improvements with modern design

= 1.0.0 =
* Initial release
* AI-powered image processing
* WooCommerce integration
* Custom prompts support
* Credit balance management
* Image gallery

== Upgrade Notice ==

= 1.1.0 =
This version adds Persian language support and improved WooCommerce integration. Recommended for all users.

== Additional Information ==

= Credits =

* Developed by [Mohammad Erfani](https://danava-ai.ir/)
* Powered by Danava AI technology

= Support =

For support, feature requests, or bug reports, please visit [Danava AI Support](https://danava-ai.ir/).

= Privacy Policy =

This plugin connects to the Danava AI service to process images. When you process an image:
* The image is sent to Danava AI servers for processing
* Processing is performed using the selected AI model
* Processed images are returned and can be saved to your WordPress media library
* Your API key is used for authentication


= Requirements =

* WordPress 5.0 or higher
* PHP 7.4 or higher
* Valid Danava API key
* Active internet connection for API communication
* (Optional) WooCommerce 3.0 or higher for product image features

== External Services ==

This plugin relies on the Danava AI external service for image processing:

* **Service URL**: https://danava-ai.ir/
* **API Endpoint**: https://danava-ai.ir/ai-support/api/v2/image-generator-requests/
* **Purpose**: AI-powered image processing and enhancement

By using this plugin, you agree to send images to Danava AI for processing. An API key is required for authentication, and credits are consumed for each processing operation.
