
內容簡介
York IE - WebP on Upload 外掛能自動將 JPEG、PNG 和靜態 GIF 圖片轉換為 WebP 格式,並在上傳至 WordPress 媒體庫時取代原始檔案,提升網站的載入速度和效能。
【主要功能】
• 自動將媒體上傳轉換為 WebP 格式
• 取代原始圖像檔案為 WebP 版本
• 轉換所有生成的圖像尺寸
• 支援 JPEG、PNG 和 GIF 的格式設定
• 附件詳細資訊中的手動轉換按鈕
• 媒體庫中的批次轉換功能
外掛標籤
開發者團隊
原文外掛簡介
York IE – WebP on Upload plugin automatically converts JPEG, PNG, and static GIF images to WebP format while uploading them to the WordPress media library. The plugin replaces the original files on disk and converts every registered image size generated by WordPress.
This helps reduce image file sizes and improve page load performance without requiring a third-party image optimization service.
Features
Automatic WebP conversion on media upload
Replaces the original image file with the WebP version
Converts all generated image sizes (thumbnail, medium, large, and custom sizes)
Per-format settings for JPEG, PNG, and GIF
Manual Convert to WebP button in the attachment details popup
Bulk Convert to WebP action in the Media Library list view
Skips animated GIF and SVG files
Uses PHP GD (imagewebp) — no external API required
Requirements
PHP GD extension with WebP support (imagewebp())
WordPress 6.0 or later
How it works
A user uploads an image to the Media Library.
The plugin checks whether the format is enabled in settings.
GD converts the uploaded file and all generated sizes to WebP.
Original files are replaced with .webp versions and attachment metadata is updated.
Developer filters
yiewebpu_webp_quality — Adjust the WebP quality (0–100) used during conversion. Default is 82.
