=== MiCompress — Image & PDF Compressor ===
Contributors: huuhuybn
Tags: compress, image optimization, pdf, optimize images, media
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 0.1.0
License: MIT
License URI: https://opensource.org/licenses/MIT

Compress Media Library images, PDFs and more via micompress.com — right from the Media Library.

== Description ==

MiCompress adds one-click compression to your WordPress Media Library, powered by the
[micompress.com](https://micompress.com/?utm_source=wordpress&utm_medium=plugin&utm_campaign=extend)
engine (mozjpeg, pngquant, gifski, Ghostscript and more).

* **Row action** — hover any image or PDF and click *Compress with MiCompress*.
* **Bulk action** — select several items and compress them in one go.
* **Presets** — Lossless, Recommended or Extreme (Settings → MiCompress).
* Files are only replaced when the compressed version is actually smaller; thumbnails are regenerated.

Supported: [JPEG](https://micompress.com/compress-jpeg?utm_source=wordpress&utm_medium=plugin&utm_campaign=extend), [PNG](https://micompress.com/compress-png?utm_source=wordpress&utm_medium=plugin&utm_campaign=extend), WebP, GIF, AVIF, TIFF, SVG, [PDF](https://micompress.com/compress-pdf?utm_source=wordpress&utm_medium=plugin&utm_campaign=extend), DOCX/XLSX/PPTX, MP4, MP3, ZIP and more.

Curious how much each format shrinks? See the [compression benchmark](https://micompress.com/compression-benchmark?utm_source=wordpress&utm_medium=plugin&utm_campaign=extend), built from thousands of real compressions.

== Installation ==

1. Upload the `micompress` folder to `/wp-content/plugins/`, or install via the Plugins screen.
2. Activate the plugin.
3. (Optional) Choose a preset under **Settings → MiCompress**.
4. Go to **Media**, and use the *Compress with MiCompress* row or bulk action.

== Frequently Asked Questions ==

= Where are my files processed? =

Files are sent over HTTPS to micompress.com for compression and the optimized version is
returned. Anonymous use is supported within per-type size limits.

= Does it keep a backup? =

No. The attachment file is replaced in place only when the compressed result is smaller.
Keep your own backups if required.

= Why is the file replaced in place instead of saved as a new file? =

So that the attachment keeps its file name and URL: every post, page or link that already embeds
it keeps working and immediately serves the smaller file. Only files inside the uploads directory
are written, through the WordPress Filesystem API.

== External services ==

This plugin relies on the MiCompress compression service (micompress.com), operated by MiCompress.
It is needed to compress files: compression happens on the service, not on your server.

* **What is sent:** the selected Media Library file (its contents and file name) and the chosen preset.
  Nothing else — no site URL, user data or analytics.
* **When:** only when an administrator clicks *Compress with MiCompress* (row action) or runs the bulk action.
  The plugin makes no requests in the background.
* **Where:** `https://micompress.com/<category>-compressors/compress`; the compressed result is then
  downloaded from `https://micompress.com/downloads/…`.

Terms of use: [https://micompress.com/terms](https://micompress.com/terms)
Privacy policy: [https://micompress.com/privacy](https://micompress.com/privacy)

== Changelog ==

= 0.1.0 =
* Initial release: Media Library row action, bulk action and preset setting.

== Upgrade Notice ==

= 0.1.0 =
Initial release.
