Title: CompressPrivacy &#8211; Local Image Compression to WebP &amp; AVIF
Author: Ankit
Published: <strong>2026 年 8 月 18 日</strong>
Last modified: 2026 年 8 月 18 日

---

搜尋外掛

![](https://ps.w.org/compressprivacy-private-image-compression/assets/banner-772x250.
png?rev=3654020)

![](https://ps.w.org/compressprivacy-private-image-compression/assets/icon-256x256.
png?rev=3652839)

# CompressPrivacy – Local Image Compression to WebP & AVIF

 由 [Ankit](https://profiles.wordpress.org/code7x/) 開發

[下載](https://downloads.wordpress.org/plugin/compressprivacy-private-image-compression.1.0.0.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/compressprivacy-private-image-compression/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/compressprivacy-private-image-compression/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/compressprivacy-private-image-compression/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/compressprivacy-private-image-compression/#developers)

 [技術支援](https://wordpress.org/support/plugin/compressprivacy-private-image-compression/)

## 外掛說明

CompressPrivacy Private Image Compression compresses images locally to WebP or AVIF
entirely in your browser, using your own CPU — no server-side processing, no external
API, no usage limit.

All compression happens on one dedicated screen: **Media  Bulk Optimizer**. Drop
or select any number of images there, adjust the quality slider if you like, and
each one is compressed and uploaded straight into the Media Library, with live per-
file and total percentage-saved shown as it goes.

Uploading anywhere else in WordPress — the Media Library’s own upload tab, a product
image, a featured image, a gallery — is untouched by this plugin by design. The 
workflow is: compress what you need on the Bulk Optimizer page first, then select
the already-compressed file from the Media Library wherever you actually need it.

#### How it works

 1. On the Bulk Optimizer page, each selected image is drawn to an in-memory `<canvas
    >` and re-encoded via `canvas.toBlob()` to WebP, or AVIF where the browser supports
    it.
 2. The compressed file is uploaded to a dedicated endpoint that inserts it into the
    Media Library the standard WordPress way (`wp_handle_upload()` + `wp_insert_attachment()`).
 3. If compression fails, isn’t smaller than the original, or the browser doesn’t support
    the required APIs, the original file uploads unmodified — nothing is ever blocked.
 4. Up to a few files compress and upload concurrently, so large batches don’t process
    one at a time.

#### Notes

 * Animated GIFs are skipped by default (canvas conversion would drop the animation);
   this is configurable.
 * AVIF encoding support varies by browser; the plugin detects support automatically
   and falls back to WebP.
 * Already-optimized formats (WebP, AVIF, SVG) are left untouched.

## 安裝方式

 1. Upload the `compressprivacy-private-image-compression` folder to `/wp-content/plugins/`.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Go to Media  Bulk Optimizer to compress and upload images. Go to Media  Image Optimizer
    to set defaults (format, quality, max dimensions, batch size).

## 常見問題集

### Does this compress images automatically when I upload them normally?

No. Compression only happens on the Media  Bulk Optimizer page. Compress what you
need there, then select the compressed file from the Media Library wherever you 
actually want to use it.

### Does this replace or resize existing images already in my library?

No. It only affects images you run through the Bulk Optimizer page.

### Does it need an API key or account?

No. All processing happens locally in the browser using standard Canvas APIs.

### What if a browser doesn’t support the Canvas/Blob APIs?

The plugin detects this and uploads the original file unmodified — nothing is blocked.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈CompressPrivacy – Local Image Compression to WebP & AVIF〉
的開發相關工作。

參與者

 *   [ Ankit ](https://profiles.wordpress.org/code7x/)

[將〈CompressPrivacy – Local Image Compression to WebP & AVIF〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/compressprivacy-private-image-compression)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/compressprivacy-private-image-compression/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/compressprivacy-private-image-compression/)，
或透過 [RSS](https://plugins.trac.wordpress.org/log/compressprivacy-private-image-compression/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/compressprivacy-private-image-compression/)。

## 變更記錄

#### 1.0.0

 * Initial public release of CompressPrivacy Private Image Compression.

## 中繼資料

 *  版本 **1.0.0**
 *  最後更新 **3 週前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 6.8 或更新版本 **
 *  已測試相容的 WordPress 版本 **7.0.4**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/compressprivacy-private-image-compression/)
 * 標籤:
 * [AVIF](https://tw.wordpress.org/plugins/tags/avif/)[client side](https://tw.wordpress.org/plugins/tags/client-side/)
   [image optimization](https://tw.wordpress.org/plugins/tags/image-optimization/)
   [media library](https://tw.wordpress.org/plugins/tags/media-library/)[webp](https://tw.wordpress.org/plugins/tags/webp/)
 *  [進階檢視](https://tw.wordpress.org/plugins/compressprivacy-private-image-compression/advanced/)

## 評分

這個項目尚無任何評論記錄。

[撰寫評分](https://wordpress.org/support/plugin/compressprivacy-private-image-compression/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/compressprivacy-private-image-compression/reviews/)

## 參與者

 *   [ Ankit ](https://profiles.wordpress.org/code7x/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/compressprivacy-private-image-compression/)