
WebPressor – WebP & AVIF Image Converter
v2.2.0Techbysh · 2025年6月19日 上架
Convert JPEG and PNG images to WebP and AVIF on your own server and serve them automatically. Free AVIF, no image limits, originals kept.
- 正在使用
- 10+
- 评分
- 暂无
- 累计下载
- 1,063
- 最近更新
- 2026年11月18日
贡献者
截图
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
<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. - 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,
<picture>elements, or server rewrite rules (.htaccess). - 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.
<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.- 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
<picture>method. - 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/uploadsfolder. - 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 [<id>...] [--limit=<number>] [--retry-failed]andwp webpressor reset --yes. - 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-skipclass to an image to leave it unchanged in<picture>mode.
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
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.


