Title: Media Optimizer
Author: YoOhw Studio
Published: <strong>2026 年 7 月 7 日</strong>
Last modified: 2026 年 7 月 8 日

---

搜尋外掛

![](https://ps.w.org/yoohw-media-optimizer/assets/banner-772x250.png?rev=3599684)

![](https://ps.w.org/yoohw-media-optimizer/assets/icon-256x256.png?rev=3599684)

# Media Optimizer

 由 [YoOhw Studio](https://profiles.wordpress.org/yoohw/) 開發

[下載](https://downloads.wordpress.org/plugin/yoohw-media-optimizer.1.0.0.zip)

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

 [技術支援](https://wordpress.org/support/plugin/yoohw-media-optimizer/)

## 外掛說明

Media Optimizer by YoOhw is a WordPress image optimization and modern image delivery
plugin for WebP and AVIF sidecars. It helps you generate modern image files locally,
verify delivery before switching frontend URLs, and keep original JPEG/PNG uploads
safe by default.

Unlike image optimization services that send media to a remote API, Media Optimizer
is local-first. It uses the active WordPress image editor, GD/Imagick when available,
and optional server binaries such as `cwebp`, `avifenc`, `jpegoptim`, `jpegtran`,`
pngquant`, `oxipng`, and `optipng`.

The default mode is conservative: the plugin creates sidecar files but does not 
replace original media files or frontend image URLs until you enable those options.
All current plugin features are free and run without a paid image optimization API.

#### Key Features

 * Generate `.webp` sidecars for original images and WordPress-generated image sizes.
 * Generate `.avif` sidecars when `avifenc` or the active WordPress image editor
   supports AVIF.
 * Optional HTML delivery: serve AVIF first, WebP second, and fall back to the original
   JPEG/PNG.
 * Delivery Assistant to test direct AVIF/WebP file access and server/CDN rewrite
   behavior.
 * Optional JPEG/PNG original-file optimization with mandatory backups.
 * Resize oversized uploads with max width and max height settings.
 * Compression modes for lossless, balanced, aggressive, and custom JPEG quality
   workflows.
 * Metadata policy controls for removing or preserving image metadata where supported.
 * Media Library Savings column with per-attachment status and restore links.
 * Overview dashboard with bandwidth savings, storage impact, coverage, and failure
   status.
 * Queue-based processing for larger media libraries.
 * Cleanup tools for generated sidecars and restore tools for backed-up originals.
 * WP-CLI helpers for analyze, optimize, restore, and queue workflows.

#### Safe Modern Image Delivery

Media Optimizer is designed for sites that want a clear modern image workflow without
immediately changing originals or relying on a third-party image CDN.

When HTML delivery is enabled, the plugin checks the browser `Accept` header and
available sidecars:

 * Browser accepts AVIF and a fresh `.avif` sidecar exists: serve AVIF.
 * Otherwise, browser accepts WebP and a fresh `.webp` sidecar exists: serve WebP.
 * Otherwise: keep the original JPEG/PNG URL.

This keeps frontend delivery compatible while still allowing modern image formats
where they are supported.

#### Optional Original Optimization

Original-file optimization is disabled by default. When enabled, Media Optimizer
can resize and recompress JPEG/PNG files after creating backups under `wp-content/
uploads/yoohw-media-backups/`.

Backups are required before replacing originals, and restore controls are available
per image and in bulk.

#### External Binaries

The plugin can detect and use supported server binaries when available:

 * JPEG: `jpegoptim`, `cjpeg`/`djpeg`, `jpegtran`
 * PNG: `pngquant`, `oxipng`, `optipng`
 * WebP: `cwebp`
 * AVIF: `avifenc`

If a binary is not available, the plugin falls back to WordPress/GD/Imagick where
possible. External binaries are optional and are not bundled with the plugin.

### Privacy

Media Optimizer does not collect personal data, does not create tracking cookies,
and does not send media files to external optimization services.

The Delivery Assistant performs HTTP HEAD checks against URLs on the same WordPress
site to verify whether generated AVIF/WebP files can be reached.

## 螢幕擷圖

[[

[[

[[

[[

[[

## 安裝方式

 1. Upload the `yoohw-media-optimizer` folder to `/wp-content/plugins/`, or install
    the plugin ZIP through the WordPress admin.
 2. Activate the plugin through the Plugins screen.
 3. Go to Media > Media Optimizer.
 4. Run optimization for existing media, or leave automatic optimization enabled for
    new uploads.
 5. Use the Delivery Assistant before enabling HTML delivery on a live site.

## 常見問題集

### Does Media Optimizer replace my original images?

Not by default. The default workflow generates WebP/AVIF sidecar files and keeps
original JPEG/PNG files unchanged.

### Can it optimize original JPEG/PNG files?

Yes, but original-file optimization is opt-in. When enabled, the plugin creates 
a backup before replacing a physical JPEG/PNG file.

### Does it serve AVIF and WebP automatically?

Only when HTML delivery mode is enabled. In that mode, AVIF is served first when
supported and available, then WebP, then the original JPEG/PNG fallback.

### Does it send images to an external service?

No. Images are processed locally by WordPress/GD/Imagick or optional server binaries.
No media files are sent to an external optimization API.

### Is Media Optimizer free?

Yes. The plugin is free and does not require paid credits, a paid API key, or a 
subscription to optimize images locally.

### Do I need cwebp, avifenc, or other binaries?

No. They are optional. If available, Media Optimizer can use them for stronger local
optimization. If not, it falls back to supported WordPress image engines.

### Does it edit .htaccess or server/CDN rules?

No. The plugin provides delivery tests and an Apache rewrite example, but it does
not automatically edit server configuration.

### Does uninstall delete generated images or backups?

No. Uninstall removes plugin options and tracking metadata only. Generated sidecars
and backups are left in place to avoid breaking existing delivery setups.

## 使用者評論

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

## 參與者及開發者

以下人員參與了開源軟體〈Media Optimizer〉的開發相關工作。

參與者

 *   [ YoOhw Studio ](https://profiles.wordpress.org/yoohw/)

[將〈Media Optimizer〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/yoohw-media-optimizer)

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

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

## 變更記錄

#### 1.0.0

 * Initial public release on WordPress.org.
 * Add local WebP and AVIF sidecar generation for WordPress media uploads.
 * Add optional HTML delivery with AVIF first, WebP second, and JPEG/PNG fallback.
 * Add Delivery Assistant, Overview dashboard, Media Library Savings column, original-
   file optimization with backups, restore tools, cleanup tools, queue processing,
   and WP-CLI helpers.

## 中繼資料

 *  版本 **1.0.0**
 *  最後更新 **15 小時前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 6.4 或更新版本 **
 *  已測試相容的 WordPress 版本 **7.0**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/yoohw-media-optimizer/)
 * 標籤:
 * [AVIF](https://tw.wordpress.org/plugins/tags/avif/)[image optimization](https://tw.wordpress.org/plugins/tags/image-optimization/)
   [media library](https://tw.wordpress.org/plugins/tags/media-library/)[performance](https://tw.wordpress.org/plugins/tags/performance/)
   [webp](https://tw.wordpress.org/plugins/tags/webp/)
 *  [進階檢視](https://tw.wordpress.org/plugins/yoohw-media-optimizer/advanced/)

## 評分

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

[Your review](https://wordpress.org/support/plugin/yoohw-media-optimizer/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/yoohw-media-optimizer/reviews/)

## 參與者

 *   [ YoOhw Studio ](https://profiles.wordpress.org/yoohw/)

## 技術支援

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

 [檢視技術支援論壇](https://wordpress.org/support/plugin/yoohw-media-optimizer/)