跳到内容

Thumbwright

v1.1.0

alidadeeditions · 2026年11月24日 上架

Rebuild image sizes, then safely remove the old ones: dry-run report first, files still used in your content kept, a 30-day trash to undo.

正在使用
10 以下
评分
暂无
累计下载
47
最近更新
2026年11月25日
需要 WordPress 6.3+已测试到 7.1.5PHP 7.4+

截图

Check your library: how many images need repair, then one button to repair them. The usual choices stay under "Options".
Check your library: how many images need repair, then one button to repair them. The usual choices stay under "Options".
After the repair, the dry run shows each image with its old files and their size, before anything is deleted.
After the repair, the dry run shows each image with its old files and their size, before anything is deleted.
Rebuild the sizes of one image straight from the media library.
Rebuild the sizes of one image straight from the media library.
Settings: images per step, memory, image types to skip and the safety check.
Settings: images per step, memory, image types to skip and the safety check.

Rebuilding thumbnails is only half the job: every rebuild leaves the old size files on disk, and deleting them blindly can break pages that still show them. Thumbwright does both halves. It rebuilds sizes in steps that resume after a closed tab or a server time-out, then lists the old files in a dry-run report, keeps every file whose name still appears in your posts, custom fields or options, and checks each file again just before deleting it.

Changed theme, or changed the sizes in Settings > Media? Your existing images keep their old sizes until you rebuild them. Thumbwright rebuilds them, even on large libraries, and helps you get rid of the files you no longer need, without ever touching your originals.

Two clicks

  • “Check my library” tells you how many images need repair. Nothing is changed.
  • “Repair my images” makes the missing sizes, then runs the dry run: you see how much space you can get back, image by image, with a thumbnail. Deleting stays a separate step that you confirm.

Rebuild

  • All images, a selection from the media library, or one image.
  • All sizes, or only the sizes you choose.
  • “Only missing sizes” mode: makes what is missing, or was made with other dimensions than the current settings, and leaves the other files alone (much faster).
  • Rebuilding never deletes a file.
  • Sizes your site turned off (with the intermediate_image_sizes_advanced filter) are never made again.

Built for large libraries

  • Work is done in short steps. Close the tab, reload the page or lose the connection: the task resumes where it stopped.
  • Each step stops before the server time or memory limit. You can lower the number of images per step and raise the memory for image work.
  • An image that crashes the server (too big for its memory, damaged file) is recorded and skipped, instead of blocking the whole run.

Safe clean-up

  • A dry run lists every file that would be removed, with its size. Download it as CSV. Nothing is deleted until you confirm.
  • Only files named like photo-300x200.jpg, next to their image, are ever considered. Originals, current sizes, edit backups and files of other media items are never touched.
  • Files whose name appears in a post, a comment, a custom field or an option are kept, so pages that still use an old size do not break. The media files and the content are read once per dry run, so the checks stay quick on large libraries and databases.
  • WebP and AVIF copies made by optimisation plugins next to your current sizes are kept.
  • Images edited in WordPress (cropped, rotated) keep their edit when their sizes are rebuilt, including sizes edited on their own.
  • Every file is checked again on disk and against your media library just before deletion, and the content is read again when the deletion starts (or resumes after a pause).

A trash to undo any clean-up

  • The files a clean-up deletes first go to a trash folder, kept 30 days. A page lost an image, or you changed your mind? Put the whole clean-up back in one click, from the Trash tab.
  • Each file goes back where it was, and files of a size no longer registered come back attached to their image. A file of the same name made there since is never overwritten.
  • After 30 days, the files are deleted for good and their space is freed. You can also delete a clean-up for good yourself, or turn the trash off in the settings.

Also

  • Skip image types you do not want to process. PDF files are skipped by default.
  • WP-CLI commands: wp thumbwright regenerate, wp thumbwright cleanup (makes the dry run; --yes then deletes what it listed), wp thumbwright resume and wp thumbwright cancel. Ctrl-C stops after the current image where PHP has the pcntl extension (without it, Ctrl-C stops in the middle of an image, and resume first waits up to 5 minutes for the stopped run’s lock to expire); reports can be saved with --format=csv > report.csv. They sit beside wp media regenerate and do not replace it.
  • No tracking and no external service: everything happens on your server.

Thumbwright Pro

Thumbwright stays complete on its own, trash included. Thumbwright Pro is a separate paid add-on for large sites: let big jobs run with the page closed, and rebuild the sizes on their own when your theme changes.

  • Rebuilds, dry runs and deletions keep going in the background after you close the page, and you get an e-mail when they end.
  • When your theme or image sizes change, the new sizes are made on their own; nothing is ever deleted without your dry run and your confirmation.
  • See how much space each size takes, and how much each clean-up freed.

Requires the free Thumbwright plugin. 1 site $39/year, 5 sites $79/year, unlimited sites $149/year. Refund within 14 days, no questions asked. Licences, payment and updates by Freemius; this free plugin never contacts Freemius.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums