=== Squishly — Image & PDF Compressor & Converter ===
Contributors: myaoapps
Tags: compress, image compression, pdf, convert, embed
Requires at least: 6.1
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

Add Squishly's free file-compression and conversion tools to your site with a block or shortcode. Everything runs in your visitors' browsers.

== Description ==

Squishly lets your visitors compress and convert images and PDFs right on your page — no uploads, no sign-up, and no load on your server, because everything runs in their own browser.

This plugin adds a **Squishly Tool** block (and a `[squishly]` shortcode) so you can drop any of these free tools anywhere on your site:

* Compress image (JPG, PNG, WebP)
* Convert image (JPG ↔ PNG ↔ WebP)
* Resize & crop
* Split image into a grid
* Image to PDF
* Compress PDF
* Organize PDF (merge, split, reorder, rotate)

You can match the tool to your site with a custom accent color, corner radius, and width, and show or hide the tool title.

**Privacy:** the tools process files entirely in the visitor's browser. Files are never uploaded to Squishly or anywhere else.

This plugin embeds tools hosted at squishlyapp.com via an iframe. See the [Squishly privacy policy](https://squishlyapp.com/privacy) and [terms](https://squishlyapp.com/terms).

== Installation ==

**The easy way — install from your WordPress dashboard:**

1. In your WordPress admin, go to **Plugins → Add New**.
2. Search for **Squishly** (or "image pdf compressor").
3. Click **Install Now**, then **Activate**.

**Manual install (alternative):**

1. Download the plugin ZIP, then go to **Plugins → Add New → Upload Plugin** and choose the ZIP — or unzip it and upload the `squishly-embed` folder to `/wp-content/plugins/`.
2. Activate it through the **Plugins** screen.

**Add a tool to a page:**

* **Block editor:** add the **Squishly Tool** block, pick a tool, and style it (accent color, corner radius, width, title) in the block sidebar.
* **Shortcode:** paste `[squishly tool="compress-image"]` into any page, post, or text/HTML widget.

**Available tools** — use any of these as the `tool` value:

* `compress-image` — Compress image (JPG, PNG, WebP)
* `convert-image` — Convert image (JPG ↔ PNG ↔ WebP)
* `resize-image` — Resize & crop
* `split-image` — Split an image into a grid of tiles
* `image-to-pdf` — Combine images into one PDF
* `compress-pdf` — Compress PDF
* `organize-pdf` — Organize PDF (merge, split, reorder, rotate)

**Shortcode options** (only `tool` is required):

`[squishly tool="compress-pdf" accent="#2563eb" radius="12" width="520" title="yes"]`

* `tool` — which tool to show (see the list above). **Required.**
* `accent` — hex color to match your brand, e.g. `#2563eb`.
* `radius` — corner radius in pixels, e.g. `12`.
* `width` — maximum width in pixels, e.g. `520`.
* `title` — `yes` (default) to show the tool's title, or `no` to hide it.

== Frequently Asked Questions ==

= Does it upload my visitors' files anywhere? =
No. The tools run entirely in the visitor's browser. Nothing is uploaded.

= Does it slow down or cost my server anything? =
No. The work happens on the visitor's device, not your server.

= Do I need a Squishly account? =
No. The embedded tools are free and need no account.

= Can I change the colors? =
Yes — set an accent color, corner radius and width on the block or via shortcode attributes.

== External services ==

This plugin embeds file tools hosted at Squishly (squishlyapp.com) by loading them inside an iframe. This is the core purpose of the plugin.

When a page containing the block or shortcode is viewed, the visitor's browser requests the tool page from `https://squishlyapp.com/embed/<tool>` and renders it in the iframe. The tool the visitor uses runs entirely in their own browser — any file they choose is processed on their device and is NOT uploaded to Squishly or to any server by this plugin. No personal data is sent by the plugin itself.

* Service: Squishly — https://squishlyapp.com
* Terms of Service: https://squishlyapp.com/terms
* Privacy Policy: https://squishlyapp.com/privacy

== Changelog ==

= 1.0.0 =
* Initial release: Squishly Tool block + `[squishly]` shortcode with 7 free tools and style controls.
