[WordPress] 外掛分享: Webxperthub Media Optimizer

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

內容簡介

Webxperthub Media Optimizer 是一款優化 WordPress 媒體庫的外掛,能在不影響網站或伺服器效能的情況下,自動壓縮新上傳的媒體並轉換為 WebP 格式,並可安全地批量處理現有媒體庫。

【主要功能】
• 自動優化上傳的媒體,無需手動操作
• 將圖片轉換為 WebP 格式或保留原格式壓縮
• 通常可減少 40-60% 的檔案大小,無明顯品質損失
• 背景排程處理,批量優化數千張圖片
• 可選擇調整過大上傳檔案的最大寬度/高度
• 預設保留原始檔案的備份

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Webxperthub Media Optimizer」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Webxperthub Media Optimizer optimizes your WordPress media library without slowing down your site or your server. It automatically compresses new uploads and converts them to WebP, and lets you bulk-process your entire existing media library safely in the background.
Key Features

Automatic optimization on upload — no manual steps required
Converts images to WebP (or PNG, or compress-only with original format kept)
Typically reduces file size by 40-60% with no noticeable quality loss
Background queue processing — bulk-optimize thousands of images without server timeouts
Optional resizing of oversized uploads to a configurable maximum width/height
Keeps a backup of your original files by default
Fully multisite compatible
Uses your server’s native Imagick or GD library — no external API, no data ever leaves your server
Developer-friendly filter hooks for custom workflows

How It Works
When Webxperthub Media Optimizer is enabled, every new image uploaded to your Media Library is automatically queued for optimization. A background process (WP-Cron) picks up queued images in small batches, so your server is never overloaded even if hundreds of images are queued at once.
Use the Bulk Optimize screen under Webxperthub Media Optimizer in your admin menu to queue your entire existing media library and watch a live progress bar as images are processed.
For Developers
Skip optimization for specific attachments:
add_filter( 'mopw_skip_optimization', function( $skip, $attachment_id ) {
if ( get_post_meta( $attachment_id, '_never_optimize', true ) ) {
return true;
}
return $skip;
}, 10, 2 );

Override format/quality for specific attachments:
add_filter( 'mopw_before_optimize_args', function( $args, $attachment_id ) {
if ( has_term( 'print-quality', 'category', $attachment_id ) ) {
$args['quality'] = 95;
}
return $args;
}, 10, 2 );

Run custom logic after an image is optimized:
add_action( 'mopw_after_optimize', function( $attachment_id, $original_size, $new_size ) {
error_log( "Attachment {$attachment_id} shrank from {$original_size} to {$new_size} bytes." );
}, 10, 3 );

延伸相關外掛

文章
Filter
Mastodon