[WordPress] 外掛分享: Tanupom In-Place Converter for WebP

首頁外掛目錄 › Tanupom In-Place Converter for WebP
WordPress 外掛 Tanupom In-Place Converter for WebP 的封面圖片
全新外掛
安裝啟用
尚無評分
22 天前
最後更新
問題解決
WordPress 5.5+ PHP 7.4+ v0.3.1 上架:2026-07-14

內容簡介

Tanupom In-Place Converter for WebP 外掛提供一種簡化的方式來將 JPEG 和 PNG 圖片轉換為 WebP 格式,並直接替換原始檔案,無需維護多個檔案版本,節省儲存空間並提升網站效能。

【主要功能】
• 自動轉換上傳的圖片為 WebP 格式
• 非破壞性庫存掃描,報告影像使用情況
• 批次轉換現有 JPEG 和 PNG 附件
• 替換文章內容中的舊圖片 URL
• 可調整 JPEG 和 PNG 的轉換品質設定

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.3.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Tanupom In-Place Converter for WebP」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Most WebP plugins keep your original JPEG/PNG files and serve WebP conditionally, which leaves you maintaining two copies of every image. Tanupom In-Place Converter for WebP takes the opposite, minimal approach: it replaces the originals with WebP in place, so your whole library ends up as a single set of WebP files. No rewrite rules, no .htaccess tricks, no duplicate storage.
It uses your server’s Imagick (ImageMagick) build to do the conversion, so heavy lifting stays on the server and the plugin itself stays small.
What it does

Automatic conversion on upload. New uploads of JPEG, PNG, BMP, HEIC, and HEIF are converted to WebP at upload time via the wp_handle_upload filter, replacing the original in place. If your server cannot output WebP (or HEIC/HEIF delegates are missing), the upload is passed through unchanged.
Inventory scan (non-destructive). Before touching anything, it reports where image URLs are used across post content, post meta, and options — so you know what a conversion will affect.
Bulk WebP conversion. Converts every existing JPEG and PNG attachment — the original plus all of its generated sub-sizes — to WebP, then deletes the old files. Runs in small batches via AJAX so it survives shared-hosting execution-time limits, and shows live progress.
Reference replacement. After conversion, it rewrites the old image URLs to the new .webp URLs in your post content and options. Serialized options (widgets, theme mods) are handled with a serialize-safe replacement so the data does not break.

Conversion settings

JPEG is encoded as lossy WebP at a configurable quality (default 80).
PNG is encoded as lossless WebP with alpha (transparency) preserved, to avoid fringing on logos and text.
EXIF orientation is baked into the pixels before conversion (no more sideways phone photos).
EXIF metadata is stripped (smaller files, and no leaking GPS location data).

All three of these are adjustable from the plugin’s settings.
WordPress 7.1 and client-side media processing
WordPress 7.1 moves image resizing and sub-size generation into the browser. This plugin works with it: the uploaded original still passes through the wp_handle_upload filter and is converted to WebP as before, and the browser then generates every sub-size in that same WebP format.
This also unlocks HEIC/HEIF on servers whose Imagick build has no HEIC delegate. On 7.1 the browser decodes the HEIC itself, using the operating system’s decoder, so the image reaches the server in a format Imagick can read. An iPhone photo then ends up as WebP rather than JPEG. Browser-side decoding depends on the platform doing the upload: Windows and macOS can do it, Linux currently cannot.
WordPress itself does not convert formats. Without this plugin a JPEG upload stays a JPEG, and a HEIC upload becomes a JPEG, on 7.1 just as on earlier versions.
Important: this is in-place and irreversible
This plugin replaces and deletes your original images, both at upload time and during bulk conversion. There is no automatic rollback. Back up your media library (and database) before running the bulk conversion.
Requirements

The Imagick PHP extension, built with WebP support. The plugin detects this and disables conversion (with a notice) if your server can’t output WebP.

延伸相關外掛

文章
Filter
Mastodon