| 开发者 | techbysh |
|---|---|
| 更新时间 | 2026年11月18日 14:50 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
<picture> delivery method lets each browser choose its format, so a cached page always shows a working image. WebPressor recommends it when it detects a page cache.<picture> elements, or server rewrite rules (.htaccess).logos/ or individual images.<picture> Elements (cache-safe): wraps images in <picture> tags that list the AVIF and WebP versions. The browser picks the best one, so it works with page caching plugins and CDNs./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.<picture> method.wp-content/uploads folder.wp webpressor status, wp webpressor convert [<id>...] [--limit=<number>] [--retry-failed] and wp webpressor reset --yes.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.tbswebpressor_attachment_processed.tbswebpressor-skip class to an image to leave it unchanged in <picture> mode.react-admin folder of the GitHub repository. To build it: clone the repository, run cd react-admin, npm install and npm run build.
WebPressor is a WordPress plugin that converts JPEG and PNG images to the WebP and AVIF formats on your own server. It then shows the smaller WebP or AVIF file to browsers that support it and the original to all others. Smaller images make pages load faster.
Yes, WebPressor is free, including AVIF. There is no Pro version, no account, no API key and no monthly image limit. The only limit is your server's capacity.
No. WebPressor never overwrites or deletes your original JPEG and PNG files. It saves WebP and AVIF copies next to them, for example photo.webp next to photo.jpg.
Use <picture> Elements if your site uses a page cache or CDN, because the page HTML is the same for every visitor and each browser picks its own format. Use HTML Alteration (the default) if you do not use a page cache. Use Server Rewrite Rules on Apache or LiteSpeed if you also want CSS background images served as WebP or AVIF.
Yes. Choose the <picture> Elements delivery method for caching plugins such as WP Rocket, LiteSpeed Cache or W3 Total Cache, then clear your cache after the bulk optimization. WebPressor warns you on the Settings screen and in the delivery self-test when it detects a page cache. If you use Server Rewrite Rules behind a CDN, the CDN must vary its cache by the browser's Accept header.
Yes. WebPressor converts every registered WordPress image size, including WooCommerce product images, thumbnails and gallery images, during the bulk optimization and on upload.
Images in post content are covered by every delivery method. Images that a theme or page builder adds outside the post content, such as headers, sliders or footer images, are covered when you choose Entire page under "Where to Replace Images", or when you use Server Rewrite Rules. Server Rewrite Rules also cover CSS background images.
WebPressor needs PHP 7.4 or newer with the GD extension and WebP support. AVIF also needs PHP 8.1 or newer with AVIF support compiled into GD. If AVIF shows as unavailable on the System Status tab, ask your hosting provider for a PHP version with GD AVIF support. WebP keeps working without it.
Go to WebPressor → Dashboard and click Start Optimization. Keep the page open while it runs, or click Run in Background to let your server continue after you close the page. New uploads are converted automatically when "Automatically convert images" is turned on in Settings.
Go to WebPressor → System Status and click Run Delivery Test. It requests a converted image from your own site and reports the format your server sends, with a hint when something needs fixing.
Some JPEGs are already highly compressed and some PNGs are very simple, so a WebP or AVIF version can be larger. WebPressor then keeps only the original, so visitors never download a bigger file. You can turn this safeguard off in Settings.
The bulk optimizer records the reason, for example a missing or corrupt file or not enough server memory, skips the image and continues. The Dashboard lists failed images. Fix the cause and click Retry Failed Images, or exclude the image.
Yes. The HTML Alteration and <picture> delivery methods work on Nginx without any server changes. For Server Rewrite Rules, Nginx ignores .htaccess files, so copy the Nginx rules shown on the Settings screen into your server configuration.
To remove all WebP and AVIF files, click Delete All WebP/AVIF Files on the Dashboard. To remove the files of one image, use Remove WebP/AVIF in the WebPressor column of the Media Library list view. Your originals are never affected. Uninstalling WebPressor removes its settings and its server rules, but keeps the generated files, so delete them first if you no longer want them.
No image or site data is sent anywhere during normal use. The only exception is the optional feedback form shown when you deactivate the plugin, and it sends nothing unless you click Submit & Deactivate. See "Privacy and external services" above.
<picture> delivery and whole-page processingtbswebpressor_resolve_variant_url filter for CDN and offload plugin integrations.htaccess RewriteBase path for server rewrite delivery