| 开发者 |
designed2use
guy1ncognito |
|---|---|
| 更新时间 | 2026年9月18日 21:26 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
name-original.webp (or .avif) so it can be restored.designed2use-convert-to-webp folder to /wp-content/plugins/, or install
through Plugins → Add New.No. Unlike many optimizers, this plugin does all conversion on your own server using WordPress's built-in image editor. There are no external requests, accounts, or quotas.
Yes — as long as the original is still on disk. Bulk conversion always keeps originals, and uploads keep theirs when Keep original file is enabled. Use Restore all to originals on the Tools page, the Restore original row action on any converted image, or the Media-list bulk action for several at once. Restore deletes the converted files and puts the attachment back to its original file, mime type, and thumbnails. Uploads that replaced their original (the default) cannot be undone.
WebP has the broadest browser and host support and is the default. AVIF produces smaller files and is offered when your server's image library can write it; if you select AVIF on a server that can't, the plugin safely falls back to WebP.
Yes — that's what Media → Convert Existing is for. It processes JPG/PNG attachments in batches with a progress bar and updates the savings dashboard as it goes.
Bulk conversion never deletes originals — that's what makes restore possible. For new uploads, the original is replaced by default; turn on Keep original file to keep both, which is also what makes an upload restorable later.
Yes, as long as the server's image library can write the chosen format — the Imagick PHP extension, or GD with WebP/AVIF support. If it can't, the plugin shows a notice and leaves your images untouched.
Yes. Both upload and bulk conversion go through the same two hooks:
d2ucw_convert_args (filter) — change quality, max_edge, or mime + ext for a
single image. Receives $opts and the source file path.d2ucw_before_save (action) — runs after rotation and resizing, just before saving.
Receives the WP_Image_Editor, the source path, the output path and the output mime type.d2ucw_convert_args and d2ucw_before_save for customising
conversion without editing plugin files.