
內容簡介
WebPressor 是一款強大的 WordPress 圖片優化外掛,能將現有的 JPEG 和 PNG 媒體轉換為 Google 推薦的 WebP 和 AVIF 格式,顯著提升網站載入速度和性能。
【主要功能】
• 自動轉換 JPEG/PNG 為 WebP 格式
• 新增 AVIF 格式支援,檔案更小
• 批次優化媒體庫中的所有圖片
• 上傳時自動轉換新圖片
• 智能瀏覽器檢測,適配不同格式
• 可調整品質滑桿,靈活設定圖片品質
外掛標籤
開發者團隊
② 後台搜尋「WebPressor – WebP & AVIF Image Converter」→ 直接安裝(推薦)
原文外掛簡介
WebPressor is a free WebP and AVIF converter for WordPress. It creates smaller WebP and AVIF copies of the JPEG and PNG images in your Media Library and shows them to browsers that support them, so pages load faster and PageSpeed’s “Serve images in next-gen formats” warning goes away.
Conversion runs on your own server: no account, no API key, no monthly image limit, and AVIF is included for free. Your original images are never changed.
Why WebPressor
AVIF at no cost. Create WebP, AVIF or both. When both exist, browsers that support AVIF get AVIF and all others get WebP.
Nothing leaves your server. Images are converted with PHP’s GD library on your hosting. There is no cloud service, account or credit system.
Safe with page caches and CDNs. The
Never makes an image bigger. If a WebP or AVIF file would be larger than the original, it is discarded and the original is used.
A bulk optimizer that always finishes. Images that cannot be converted are skipped and listed with the reason, so you can fix them and retry.
Easy to check. The delivery self-test tells you whether your server really sends WebP or AVIF.
Key features
Bulk optimizer for the images already in your Media Library, with progress, savings and a live log.
Run in the background: let the server continue the bulk optimization after you close the page.
Automatic conversion of new uploads, including every thumbnail size. Images you crop, rotate or scale in the WordPress image editor are converted again.
Three delivery methods: HTML alteration,
Content or entire page: replace images in post content only, or everywhere on the page, including theme headers and page builder sections.
Quality control: separate WebP and AVIF quality settings (10–100), plus lossy or lossless mode.
Media Library column: see the status and savings of each image, and optimize, remove or exclude single images.
Exclusions: skip folders such as logos/ or individual images.
Maximum upload size: scale down very large new uploads before conversion, using WordPress’ own big-image handling.
Automatic cleanup: deleting an image also deletes its WebP and AVIF files.
System status: checks GD, WebP and AVIF support, folder permissions and the server type. Shows ready-to-copy Nginx rules.
Accessible, translatable admin screens that work with the keyboard and screen readers.
How it works
Install and activate WebPressor.
Go to WebPressor → Dashboard and click Start Optimization (or Run in Background).
Optional: choose formats and a delivery method under WebPressor → Settings, then run the test under WebPressor → System Status.
New uploads are converted automatically from then on.
Choose how images are delivered
HTML Alteration (default): swaps image URLs in the page for each visitor, based on what their browser supports. Needs no server setup.
Server Rewrite Rules: adds rules to /wp-content/uploads/.htaccess (Apache and LiteSpeed) so image requests get WebP or AVIF without changing your pages, including CSS background images. On Nginx, add the rules shown on the Settings screen to your server configuration.
Browsers that support neither format always get the original JPEG or PNG.
Perfect for
Blogs and business sites that want to pass PageSpeed’s “Serve images in next-gen formats” check.
WooCommerce stores with many product photos. All registered image sizes, including product thumbnails and gallery images, are converted.
Sites that use a page cache (WP Rocket, LiteSpeed Cache, W3 Total Cache and others) together with the
Shared hosting, where a cloud optimizer with credits or an API key is not wanted.
Developers and agencies who manage images from the command line with WP-CLI.
Compatibility and requirements
WordPress 6.0 or newer and PHP 7.4 or newer.
The PHP GD extension with WebP support.
AVIF needs PHP 8.1 or newer with AVIF support in GD. WebP works without it. The System Status tab shows what your server supports.
Converts JPEG and PNG images stored in your local wp-content/uploads folder.
On a WordPress Multisite network, each site has its own settings and its own optimization.
What WebPressor does not do
It does not compress or overwrite your original JPEG and PNG files. It adds WebP and AVIF copies next to them.
It does not convert GIF, SVG or existing WebP images.
It does not convert images stored outside your server, for example images offloaded to Amazon S3.
It does not resize images that are already uploaded. The maximum upload size applies to new uploads only.
It is not a CDN and does not add lazy loading.
For developers
WP-CLI: wp webpressor status, wp webpressor convert [
Filters: tbswebpressor_resolve_variant_url, tbswebpressor_is_excluded, tbswebpressor_active_formats, tbswebpressor_batch_size, tbswebpressor_skip_image, tbswebpressor_picture_html, tbswebpressor_enable_output_buffer, tbswebpressor_background_time_limit.
Action: tbswebpressor_attachment_processed.
Add the tbswebpressor-skip class to an image to leave it unchanged in
Privacy and external services
Image conversion happens entirely on your own server; your images are never uploaded anywhere. The delivery self-test only requests images from your own site.
The only external service is optional:
Google Apps Script (https://script.google.com) — Optional deactivation feedback, sent to the plugin author (Techbysh) and stored in a Google Sheet. It is sent only when an administrator deactivates the plugin and clicks Submit & Deactivate in the feedback popup; Skip & Deactivate and closing the popup send nothing. It contains the chosen reason, any text typed, the plugin, WordPress, and PHP versions, the site language, whether the site is multisite, and the active theme name. The site URL and admin email are included only if the administrator ticks the opt-in checkbox. Privacy: https://policies.google.com/privacy Terms: https://policies.google.com/terms
Documentation, support and source code
Support forum
Source code on GitHub
The admin JavaScript is minified. Its React source is in the react-admin folder of the GitHub repository. To build it: clone the repository, run cd react-admin, npm install and npm run build.
