# SmallPict - Cloud-Powered Image Optimization for WordPress

**The smartest way to optimize your WordPress images.**

SmallPict is a modern, managed SaaS solution that automatically compresses and converts your images (WebP/AVIF) using our high-performance cloud infrastructure. Say goodbye to complex server configurations, personal AWS keys, and overloaded web servers.

**[Visit Official Website](https://smallpict.tuxnoob.com)**

## Why SmallPict?

-   **Cloud-Native**: All processing happens on our dedicated serverless fleet, not your hosting server.
-   **Managed Service (SaaS)**: No technical setup required. We handle the infrastructure; you enjoy fast images.
-   **Zero Configuration**: No need to create AWS accounts, IAM users, or manage API keys.
-   **Next-Gen Formats**: Deliver WebP and AVIF images automatically to compatible browsers.

## Features

| Feature | Free | Pro / Business / Agency |
| :--- | :---: | :---: |
| **Optimization** | WebP Only | **AVIF**, WebP, JPG, PNG |
| **Compression** | Lossless | Intelligent Lossy (High compression, same quality) |
| **Processing** | Standard Priority | **High Priority Queue** |
| **Support** | Community | Priority Email & Chat |

## Installation

1.  Download the plugin or install via WordPress Plugin Repository.
2.  Activate **SmallPict**.
3.  Follow the **Quick Start** wizard to link your account or enter your License Key.
4.  That's it! New images will be optimized automatically on upload.

## Pricing

SmallPict offers flexible pricing tiers to match your needs, from personal blogs to large agencies.

Check out our [Pricing Page](https://smallpict.tuxnoob.com/pricing) for the latest details.

## Frequently Asked Questions

**Do I need an AWS Account?**
No! SmallPict is now a fully managed service. We handle all the cloud infrastructure for you.

**What happens to my original images?**
Your original images are safe. SmallPict creates optimized versions and serves them to your visitors.

## Development (Internal)

### Build Process
We use a custom `build.sh` script to bundle the plugin:
```bash
cd smallPict
./build.sh
```

### CI/CD
Automated deployment is handled via GitHub Actions to deploy to Freemius.

## Changelog

### 1.1.2
- **Fix**: Replaced `rename()` function with `WP_Filesystem::move()` to comply with WordPress standards.
- **Fix**: Added `smallpict.pot` template file to satisfy Domain Path requirement.

### 1.1.1
- **Security**: Improved output escaping and sanitization across settings and admin pages.
- **Security**: Added direct file access protection to all remaining PHP files.
- **Fix**: Removed development logging functions for cleaner production operation.
- **Fix**: Standardized timezone handling to use `gmdate()`.
- **Fix**: Replaced `unlink` with `wp_delete_file` for better filesystem compatibility.

---
*Built with ❤️ by the Tuxnoob Team.*
