[WordPress] 外掛分享: Media Optimizer

首頁外掛目錄 › Media Optimizer
WordPress 外掛 Media Optimizer 的封面圖片
全新外掛
安裝啟用
尚無評分
9 天前
最後更新
問題解決
WordPress 6.4+ PHP 7.4+ v1.0.0 上架:2026-07-06

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「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.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon