
外掛標籤
開發者團隊
② 後台搜尋「JBWEBDEV Image Format Converter」→ 直接安裝(推薦)
原文外掛簡介
JBWEBDEV Image Format Converter is a WordPress plugin that automatically converts your media library images to WebP and AVIF formats using configurable lossy compression quality (with optional lossless WebP encoding for PNGs), reducing file sizes while keeping original files intact.
Key Features
Automatic conversion on upload — Every JPEG, PNG, GIF, and BMP you upload is queued for WebP conversion and, when AVIF is enabled and supported by your server’s image library, AVIF conversion.
Optional AVIF — AVIF output is off by default. Switch it on under Tools → Format Converter once your server supports it (PHP 8.1+ with GD 2.3.2+, or ImageMagick with libheif).
Bulk conversion — Convert your entire media library in background batches with a real-time progress bar.
Smart serving — Serves .webp/.avif files only to browsers that support them (preferring AVIF when both exist); all other browsers receive originals.
Apache & Nginx support — Generates ready-to-paste server config for zero-PHP-overhead image serving.
Original preservation — Keeps original files by default and optionally backs them up to a configurable sub-folder.
Quality control — Set your preferred lossy compression quality for WebP (1–100, default 82) and AVIF (1–100, default 60, opt-in), or switch PNGs to lossless WebP encoding.
Per-format control — Opt individual formats (JPEG/PNG/GIF/BMP) out of conversion entirely.
Size safety net — Automatically discards a converted WebP/AVIF file and keeps the original if conversion didn’t actually shrink it.
Orphan cleanup — Removes generated WebP/AVIF and backup files when the original attachment is deleted.
CDN-aware rewriting — Optional CDN base URL so HTML rewriting still matches CDN-served image URLs.
Zero dependencies — Uses WordPress’s own image libraries (GD/Imagick). No Composer required.
Configuration & Usage
Open Tools → Format Converter. Out of the box, auto-convert on upload, original preservation, and HTML URL rewriting (via WordPress 6.9+’s template enhancement buffer with Vary: Accept) are enabled with WebP quality 82.
Adjust lossy quality, enable Lossless PNG Encoding, toggle AVIF (default quality 60), or opt out specific source formats in the settings form, then click Save Settings.
Click Start Bulk Conversion to convert existing library images in batches (you can click Stop at any time).
(Optional) In the Server Configuration panel, use the Apache / .htaccess or Nginx tabs to apply or copy server-level serving rules.
