| 开发者 |
webberzone
ajay |
|---|---|
| 更新时间 | 2026年10月8日 01:32 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
photo.jpg gains photo.jpg.webp. The File naming setting can switch this to replacing the extension instead (photo.webp) — see the settings screen for the trade-off before turning it on. Sidecar generation leaves the source unchanged. Optional original compression recompresses served JPEG/PNG files with mandatory backups; optional resizing uses the maximum dimension. Use Restore originals to reverse these changes. Deactivation stops optimized delivery but does not restore compressed originals.
Delivery that survives caching
Images are wrapped in a <picture> element, so the browser chooses the format. That matters more than it sounds: the common alternative is to vary the response on the Accept header, which returns different bytes for a single URL. Any cache in front of that — a page cache plugin, a CDN — which ignores Vary will happily hand a WebP file to a browser that cannot display it. A <picture> element has no such failure mode.
Responsive images are handled properly. Each format's <source> lists only the optimized srcset candidates that exist, with their descriptors preserved exactly. Missing intermediate copies are omitted, while a missing smallest, widest or highest-density copy withholds that format so the optimized set always covers the same range as the original set. The original <img> remains as the fallback.
For images referenced from a stylesheet, where the browser is never offered a choice, the Delivery tab generates ready-to-paste Apache and nginx rules, complete with the Vary: Accept header those rules require.
Bulk conversion that finishes
The bulk screen works through a database-backed queue one batch at a time. Close the tab and nothing is lost; a background worker carries on, and reopening the screen resumes exactly where it stopped. Failures are retried a few times and then listed with the reason.
Features
wp wzio status, convert, queue, run, cleanwebberzone-image-optimizer folder to /wp-content/plugins/.By default, originals are unchanged and modern copies are separate files. Enable Compress original images to recompress served JPEG/PNG files with mandatory backups. Restore originals reverses compression and optional resizing. The unscaled upload retained by WordPress is left untouched.
Your site immediately goes back to serving the original images. The generated files stay on disk, so reactivating restores the optimization instantly without converting anything again.
No. The <picture> rewrite needs nothing beyond activating the plugin. Server rules are only needed for images referenced from CSS, and they are optional.
AVIF produces noticeably smaller files than WebP and is understood by every current browser, but it takes longer to encode and a small number of older browsers do not support it. Generating both is the safest choice: each visitor gets the smallest file their browser can read, and anyone else gets the original. Start with WebP if your library is very large.
The settings screen marks any format your server cannot produce. Ask your host to enable the Imagick extension, which is the better backend, or GD compiled with WebP support.
There are three common reasons, and the Media library column tells you which one applies.
The image is not hosted on your site. Only files inside your own uploads directory can be optimized. Posts imported from another site often keep image URLs pointing back at the original domain, and those are left alone.
One size in the set could not be made smaller. A lossy optimized copy that misses the minimum saving is retried once at a lower quality and discarded if it still misses. Lossless copies are simply discarded when they miss. Missing intermediate copies are left out of the optimized srcset, so the browser can still use the copies that exist. If the smallest, widest or highest-density copy is missing, that optimized format is withheld to avoid over-downloading or serving an undersized image where the original set offered a better choice.
Your server cannot produce that format. Check the settings screen, which marks any format your server cannot encode.
Yes. Because the format choice happens in the browser rather than on the server, every visitor receives identical HTML and the page cache stays correct. If you also add the optional server rules for CSS backgrounds, keep the Vary: Accept header they include.
wp wzio compress support.wp wzio restore-originals to recover files and dimensions; backups and restore records are retained on uninstall by default.wp wzio compress --resize to shrink served main files with restorable dimensions; existing thumbnail files are retained, with oversized candidates omitted from WordPress-generated srcset.wp wzio status.--outdated on wp wzio convert and wp wzio queue; copies made before settings tracking are left alone.wp wzio status omitted images converted outside the queue and could be lost when queue records were cleared.wp_tempnam() was unavailable.