Linux 软件免费装
Banner图

Size Shelf – Regenerate Thumbnails & Image Sizes

开发者 jeanswiegers
更新时间 2026年11月13日 13:26
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

image sizes thumbnails regenerate thumbnails missing thumbnails delete unused image sizes

下载

1.0.0 1.0.1

详情介绍:

Size Shelf regenerates thumbnails and other image sizes after you change theme, install a plugin that adds sizes, or edit a size in Settings → Media. It also tidies up afterwards: it finds the leftover files of old and switched-off sizes, shows you exactly what it would remove, and moves them to a trash you can restore from. Everything in this plugin is free. There are no locked buttons, no ads and no upgrade notices in your dashboard. The only mention of the optional Pro add-on is a small link on the Size Shelf screen itself, and it disappears once Pro is installed. Regenerate thumbnails Image sizes Delete unused image sizes, safely WP-CLI Everything works from the command line too, using the same resumable engine: wp size-shelf regenerate [<ids>...] [--missing] [--sizes=<names>] [--from=<date>] [--to=<date>] [--yes] wp size-shelf sizes · wp size-shelf disable <size> · wp size-shelf enable <size> wp size-shelf cleanup scan|list|trash|restore|empty wp size-shelf job [status|resume|cancel] Size Shelf Pro An optional paid add-on for people who want this on autopilot: background and scheduled runs, regenerating a Media Shelf folder, custom image sizes without code, WebP/AVIF sizes, and per-post-type size rules. The free plugin is complete without it. Privacy Size Shelf sends nothing anywhere. It has no tracking, no remote calls and no external services. It stores its settings and run history in your database, and cleanup records in its own table.

安装:

  1. Install and activate Size Shelf from Plugins → Add New.
  2. Open Media → Size Shelf.
  3. Choose what to make and which images, then click Start regenerating.

屏幕截图:

  • A run in progress: live progress, counters and a filterable log. It resumes after timeouts and closed tabs.
  • Cleanup dry run: leftover and switched-off size files, with the space they use, before anything is moved.
  • Image sizes: every size with its source, shape and usage. Switch off the ones you don't need.
  • The trash: restore a cleanup batch, or delete it permanently.

升级注意事项:

1.0.1 Adds a small link to the optional Size Shelf Pro add-on on the Size Shelf screen. No other changes. 1.0.0 First release.

常见问题:

Will it change or delete my original images?

No. Size Shelf never writes to, moves or deletes the uploaded originals (or WordPress's "-scaled" and "-rotated" copies). It only makes generated sizes, and cleanup only ever moves leftover generated sizes into its trash.

What happens if my host times out halfway?

Progress is saved after every image. The next batch continues after the last finished image. If an image crashed PHP, it is marked as failed and the run goes on. If you close the page, the run waits as "Interrupted" with a Resume button.

How does cleanup decide what is safe to remove?

A file is only listed if it looks like a generated size of an image (name-300x200.jpg), sits next to that image, and is not referenced by any image's metadata in that folder. Files of switched-off sizes are listed separately and only when you ask for them. Files whose names appear in post content or custom fields are kept. Every file is checked again right before it is moved.

Where does the trash live, and is it removed on uninstall?

In wp-content/uploads/size-shelf-trash/. Uninstalling removes Size Shelf's settings and tables but deliberately leaves the trash folder, so files can never be lost by uninstalling. Empty the trash from the Trash tab first if you don't need it.

Does it work on multisite?

Yes. Each site has its own sizes, runs, cleanup records and trash. It can be network-activated or activated per site.

Who can use it?

Administrators (the manage_options capability). Developers can change this with the size_shelf_capability filter. Regenerating a single image also requires permission to edit it.

Does it work with WooCommerce, Elementor and other plugins that add sizes?

Yes. Their sizes appear in the list with the plugin named as the source, and you can switch off the ones your site doesn't use.

Where does the size's "source" come from?

Size Shelf notes which sizes exist before and after your theme and plugins load, and matches size names to active plugins and the theme. It's a good guide, not a guarantee; sizes added in custom code may show as "A plugin or custom code".

更新日志:

1.0.1 1.0.0