=== CCA Image Resizer ===
Contributors: cca Developer team
Tags: image, resize, optimize, avif, webp, compress, image optimization
Requires at least: 5.5
Tested up to: 6.5
Requires PHP: 7.2
License: GPLv2 or later
License URI: https://codecrafttools.uk/

Professional WordPress Image Optimization. Resize, compress, and convert images to AVIF, WebP, JPEG, or PNG with a beautiful interface.

== Description ==

CCA Image Resizer is a powerful, beautiful, and easy-to-use WordPress plugin for resizing and optimizing images directly from your WordPress dashboard.

**Key Features:**

* Resize by **Dimensions** (pixel width/height) or **Percentage** (scale ratio)
* Lock aspect ratio toggle
* Output quality slider (10% - 100%)
* Convert to **AVIF** (best compression), **WebP**, **JPEG**, or **PNG**
* Admin setting for maximum upload size from **1 MB to 100 MB**
* Admin license key field with enforced 16-character format: `XXXX-XXXX-XXXX-XXXX`
* License validation through `codecrafttools.uk`
* Free unlicensed mode allows 12 processed images before upload is disabled
* Smarter lossy compression retry when the first output is not smaller
* Live before/after preview with file size comparison
* Real percentage savings indicator
* Beautiful, modern admin UI matching the official design
* Frontend shortcode for any website page: `[cca_image_resizer]`

**Why use CCA Image Resizer?**

Large images slow down your site, hurt SEO, and waste bandwidth. CCA Image Resizer lets you compress images by up to 98% with no perceptible quality loss.

== Installation ==

1. Upload the `cca-image-resizer` install via using the ZIP upload.
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Go to **CCA Resizer** in your WordPress admin sidebar.
4. Optional: go to **CCA Resizer > Settings** and choose max image size from 1 MB to 100 MB.
5. Drop or select an image, choose your settings, click **Process Image**, then **Download**.

To display the resizer on a public page, add this shortcode to any WordPress page or post:

`[cca_image_resizer]`

You can control the frontend width with shortcode attributes:

`[cca_image_resizer width="900" height="680" compact="yes"]`

If your theme creates too much vertical space, lower the height value:

`[cca_image_resizer width="900" height="560" compact="yes"]`

The same upload, preview, process, and download interface will appear on the website page.

== Frequently Asked Questions ==

= Does this plugin require any external service or API key? =

No. All processing happens on your own server using WordPress's native image editor.

= What shortcode should I use on a website page? =

Use `[cca_image_resizer]` in any page, post, or shortcode block.

= What image formats are supported? =

Input: AVIF, JPG, JPEG, PNG, GIF, WebP. Output: AVIF, WebP, JPEG, PNG.

= Is AVIF supported on my server? =

AVIF requires GD or Imagick AVIF support. If AVIF output is unavailable, the plugin automatically falls back to WebP, then JPEG, so processing still completes.

= Is WebP supported on my server? =

WebP requires GD with WebP support (PHP 7.2+) or Imagick with WebP delegate. Most modern hosts support it.


