[WordPress] 外掛分享: Thumbwright – Regenerate Thumbnails & Delete Unused Image Sizes

首頁 › 外掛目錄 › Thumbwright – Regenerate Thumbnails & Delete Unused Image Sizes
WordPress 外掛 Thumbwright – Regenerate Thumbnails & Delete Unused Image Sizes 的封面圖片
全新外掛
安裝啟用
—
尚無評分
5 天前
最後更新
—
問題解決
WordPress 6.3+ PHP 7.4+ v1.1.1 上架:2026-11-23

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Thumbwright – Regenerate Thumbnails & Delete Unused Image Sizes」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Regenerating thumbnails is only half the job: every regeneration leaves the old, unused image sizes on disk, and deleting them blindly can break pages that still show them. Thumbwright does both halves. It regenerates thumbnails 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 still named in your content, and checks each file again just before deleting it. Deleted files first go to a free 30-day trash, so any clean-up can be put back in one click.
Where Thumbwright looks before deleting: posts and pages, custom fields, options and widgets, menus, comments, category and tag descriptions, and the extra data of terms, users and comments. If an old size file is named in any of them, it is kept (safety check, on by default; the FAQ says what is not searched).
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 free trash to undo any clean-up

Included in the free plugin. 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.

延伸相關外掛

文章
Filter
Mastodon