跳到内容

CompressPrivacy – Local Image Compression to WebP & AVIF

v1.0.0

Ankit · 2026年8月18日 上架

Unlimited, free image compression to WebP/AVIF — done entirely in the editor's browser before upload. No server load, no API keys, no limits.

正在使用
10 以下
评分
暂无
累计下载
262
最近更新
2026年8月18日
需要 WordPress 6.8+已测试到 7.0.9PHP 7.4+

贡献者

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.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums