=== VectoSolve - Image to SVG Converter ===
Contributors: vectosolve
Tags: svg, dxf, woocommerce, vectorize, personalization
Requires at least: 5.8
Tested up to: 6.8
Stable tag: 1.1.1
WC requires at least: 7.0
WC tested up to: 9.4
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Convert raster images to clean SVG vectors, remove backgrounds, and upscale images using AI — right from your WordPress dashboard.

== Description ==

= New in 1.1: WooCommerce orders =

Run a personalization shop? Customers upload a logo or photo with their order, and your workshop needs a clean file to print, cut or engrave. VectoSolve finds the images uploaded on each order (from any product upload or add-on plugin that stores the image URL on the order item), converts them to SVG or DXF, saves them to your Media Library and links them on the order.

* "VectoSolve files" box on the order screen with a one-click "Create vector files" button
* Optional automatic conversion when an order is paid (status Processing), queued in the background so checkout is never slowed down
* Modes for Cricut, laser, embroidery and centerline engraving; SVG or DXF output
* Each image is converted once per order; results and errors are written as order notes
* Compatible with WooCommerce High-Performance Order Storage


**VectoSolve** brings AI-powered image conversion to WordPress. Convert PNG, JPG, and WebP images to crisp, scalable SVG vectors in seconds — directly from your Media Library.

VectoSolve uses advanced AI models to produce high-quality vector graphics that look perfect at any size. No design skills required.

= Features =

* **Image to SVG** — Convert any raster image to a clean, optimized SVG vector
* **Background Removal** — Remove backgrounds from product photos, portraits, and more
* **Image Upscale** — Enhance image resolution with AI (2x/4x crisp upscale)
* **Media Library Integration** — One-click "Vectorize" button on every image in your library
* **Bulk Vectorization** — Select multiple images and vectorize them all at once
* **Frontend Upload Form** — Add a `[vectosolve]` shortcode to any page for visitor-facing conversions
* **Drag & Drop** — Modern drag & drop interface for easy image uploads
* **Dark Mode** — Choose between light and dark themes for the upload form
* **Customizable** — Set accent colors and choose which tool to display

= How It Works =

1. Install the plugin and enter your API key from [vectosolve.com](https://vectosolve.com)
2. Go to your Media Library and click "Vectorize" on any image
3. The converted SVG is automatically saved to your Media Library
4. Use SVGs in your posts, pages, and theme for crisp graphics at every screen size

= Use Cases =

* **Logo Conversion** — Turn a PNG logo into a scalable SVG for your header
* **E-commerce** — Remove backgrounds from product images
* **Print & Cut** — Create SVGs for Cricut, Silhouette, and laser cutters
* **Web Performance** — Replace heavy PNGs with lightweight SVGs
* **Graphic Design** — Upscale low-resolution images without quality loss

= Shortcode =

Add a conversion form to any page or post:

`[vectosolve]` — Default vectorize tool with light theme
`[vectosolve tool="remove-bg"]` — Background removal tool
`[vectosolve tool="upscale" theme="dark"]` — Upscale tool with dark theme
`[vectosolve accent-color="#ff6600"]` — Custom accent color

= API =

This plugin connects to the [VectoSolve API](https://vectosolve.com/api) to process images. An API key is required. You can get one for free at [vectosolve.com/developers](https://vectosolve.com/developers).

VectoSolve API terms of service: [vectosolve.com/terms](https://vectosolve.com/terms)
VectoSolve privacy policy: [vectosolve.com/privacy](https://vectosolve.com/privacy)

= Links =

* [VectoSolve Website](https://vectosolve.com)
* [Get API Key](https://vectosolve.com/developers)
* [API Documentation](https://vectosolve.com/developers)
* [Support](https://vectosolve.com/contact)

== Installation ==

= Automatic Installation =

1. Go to **Plugins > Add New** in your WordPress admin
2. Search for "VectoSolve"
3. Click **Install Now**, then **Activate**
4. Go to **Settings > VectoSolve** and enter your API key

= Manual Installation =

1. Download the plugin ZIP file
2. Go to **Plugins > Add New > Upload Plugin**
3. Upload the ZIP file and click **Install Now**
4. Activate the plugin
5. Go to **Settings > VectoSolve** and enter your API key from [vectosolve.com/developers](https://vectosolve.com/developers)

= Getting an API Key =

1. Visit [vectosolve.com](https://vectosolve.com) and create a free account
2. Go to [vectosolve.com/dashboard/api-keys](https://vectosolve.com/dashboard/api-keys)
3. Create an API key (starts with `vs_`)
4. Paste it into **Settings > VectoSolve** in your WordPress admin

== Frequently Asked Questions ==

= Do I need an API key? =

Yes. VectoSolve uses AI models to convert images, which requires an API key. You can get one at [vectosolve.com/developers](https://vectosolve.com/developers).

= How much does it cost? =

The plugin itself is free. Image conversions use credits from your VectoSolve account: 0.20 credit per vectorization, 0.07 per background removal and 0.15 per upscale. Visit [vectosolve.com/pricing](https://vectosolve.com/pricing) for current plans.

= What image formats are supported? =

You can upload PNG, JPG, and WebP images (up to 10 MB). Vectorization outputs SVG files. Background removal and upscaling output PNG files.

= Can my site visitors use the converter? =

Yes! Add the `[vectosolve]` shortcode to any page to display a public upload form. Conversions use your API credits. No credit link is shown to visitors unless you add `credit="yes"` to the shortcode.

= Is there a file size limit? =

Images must be under 10 MB. For best results with vectorization, use images with clear lines and solid colors.

= Where are converted files saved? =

Converted files are saved directly to your WordPress Media Library. They appear alongside your other media files.

= Does this work with Gutenberg? =

Yes. You can add the `[vectosolve]` shortcode using a Shortcode block in the block editor.

= Can I vectorize multiple images at once? =

Yes. In the Media Library list view, select multiple images and choose "Vectorize with VectoSolve" from the Bulk Actions dropdown.

= What happens if I run out of credits? =

The conversion will fail with an error message. You can purchase more credits at [vectosolve.com](https://vectosolve.com).

== External services ==

This plugin connects to the VectoSolve API (https://vectosolve.com/api/v1) to convert images. Nothing is sent until you, or a visitor using the `[vectosolve]` shortcode, start a conversion, or until a WooCommerce order is converted (by the "Create vector files" button, or automatically if you turned that option on).

* What is sent: the image file, or the public URL of an image attached to an order, the conversion settings (mode, output format) and your API key. No personal data of your customers is sent.
* When: only when a conversion is started as described above, and when the settings page shows your remaining balance.
* Service provider: VectoSolve. [Terms of service](https://vectosolve.com/terms), [Privacy policy](https://vectosolve.com/privacy).


== Screenshots ==

1. Settings page — Enter your API key and view credit balance
2. Media Library — One-click Vectorize, Remove BG, and Upscale buttons
3. Bulk action — Vectorize multiple images at once
4. Frontend shortcode — Drag & drop upload form with live preview
5. SVG result — Clean vector output ready for download

== Changelog ==

= 1.1.1 =
* The public "Powered by VectoSolve" link of the [vectosolve] shortcode is now off by default (opt in with credit="yes")
* Readme: External services section, credit costs, API key page

= 1.1.0 =
* New: WooCommerce module, vector files from images uploaded with orders (manual or automatic)
* Fix: vectorization saved the API JSON answer as the .svg file; the SVG itself is now saved
* Fix: background removal and upscale results were not recognized
* Fix: the settings page showed a wrong balance; it now shows the conversions left

= 1.0.0 =
* Initial release
* Image to SVG vectorization from Media Library
* Background removal
* Image upscaling (2x/4x)
* Bulk vectorization support
* [vectosolve] shortcode with drag & drop upload
* Light and dark theme support
* Credit balance display in settings
* WordPress 6.7 compatibility

== Upgrade Notice ==

= 1.0.0 =
First release of VectoSolve for WordPress. Convert images to SVG vectors, remove backgrounds, and upscale — powered by AI.
