| 开发者 | kestrelpine |
|---|---|
| 更新时间 | 2026年11月7日 19:50 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
wp kestrelpine-sizes regenerate with --sizes, --missing-only, --from, --to and --dry-run.No. Regeneration only writes size files. The original upload is never changed. The leftover files report only lists size files that match an image's name pattern and are not referenced by that image or any other attachment, and nothing is deleted until you confirm on the preview screen.
When a size changes dimensions, WordPress writes a new file and the old one stays on disk. Use the Leftover files tab to scan the library, then review and remove those, one image at a time. The scan can be paused and resumed, and it only reports that nothing was found once every image has been checked. Keep a backup before deleting files.
The progress screen processes a few images per request and saves its position after every image. If the browser closes or the server stops, open the page again and press Resume. For very large libraries, the WP-CLI command is the fastest option.
wp kestrelpine-sizes regenerate processes all images. Add attachment IDs to process only those, --sizes=thumbnail,medium to pick sizes, --missing-only to skip existing sizes, --from and --to for an ID range, and --dry-run to preview. wp kestrelpine-sizes leftovers <id> lists leftover files for one image and --delete removes them.
Yes. The plugin calls the same core functions as an upload, so any output format set through the image_editor_output_format filter is used.
Users with the manage_options capability, which is administrators by default. Developers can change this with the kpism_capability filter.