內容簡介
**總結:**
Thumbnail Manager 幫助您從過大的媒體庫中釋放磁碟空間。
**問題與答案:**
1. 這個外掛程式的用途是什麼?
- 答:它可以幫助您刪除過大的媒體庫中不必要的影像尺寸,節省磁碟空間。
2. 它如何處理影像檔案?
- 答:透過「Prune Files」功能,您可以選擇要保留的影像尺寸,而插件會掃描您的 /uploads/ 資料夾,針對未選定的尺寸進行刪除。您可以逐批次刪除,並透過實時進度條來顯示刪除進度。
3. 誰適合使用這款外掛程式?
- 答:適合網站擁有者、編輯和開發者,他們累積了許多自訂的影像尺寸(主題、頁面建構器、滑塊),並且希望安全地減少存儲空間。
4. 它不會做的事情有哪些?
- 答:外掛程式不會重新生成縮圖。如果您需要在更改設置後重新建立尺寸,則應使用一個重建外掛程式。此外,它也不會刪除原始全尺寸影像。
5. 如何使用這個外掛程式?
- 答:在「Prune Files」中,您可以勾選要保留的尺寸,選擇子文件夾進行更快速、安全的試驗運行,啟用孤兒-寬x高發現以查看報告或刪除找到的尺寸。
6. 需要的技術注意事項是什麼?
- 答:您可以通過 intermediate_image_sizes_advanced 阻止生成影像尺寸,在介面使用 image_size_names_choose 隱藏尺寸,如果需要,還可以禁用自動縮放的大圖像。此外,需要 manage_options 的功能權限。
7. 是否會侵犯隱私?
- 答:這個外掛程式不會收集個人資料或將資料發送到外部服務,只會根據您的操作讀取和修改 /uploads/ 資料夾中的檔案。
```html
<ul>
<li>這個外掛程式的用途是什麼?</li>
<li>它如何處理影像檔案?</li>
<li>誰適合使用這款外掛程式?</li>
<li>它不會做的事情有哪些?</li>
<li>如何使用這個外掛程式?</li>
<li>需要的技術注意事項是什麼?</li>
<li>是否會侵犯隱私?</li>
</ul>
```
外掛標籤
開發者團隊
原文外掛簡介
Thumbnail Manager helps you take back disk space from oversized Media Libraries.
What it does
– Prune Files: Select the image sizes you want to KEEP. The plugin scans your /uploads/ folder and targets all non-selected registered sizes for removal. It shows a dry-run summary first, then lets you delete in batches with a live progress bar.
– Orphan discovery: Finds on-disk files that match -WxH patterns (including .jpg.webp, .bak.jpg, retina @2x, and duplicate -1 suffixes) even if those sizes are no longer registered. Aggressively deletes any -WxH files that don’t exactly match the sizes you chose to keep (use with care).
– Subfolder scope: Limit scans to a specific year/month inside uploads/ for faster, safer runs on large libraries.
– Thumbnail Sizes: Choose which sizes should be generated for future uploads. Disabled sizes won’t be created at upload time (and are hidden from size pickers).
What it doesn’t do
– It does not regenerate thumbnails. Use a regeneration plugin if you need to rebuild sizes after changing settings.
– It never deletes original full-size images.
Who is it for?
Site owners, editors, and developers who’ve accumulated many custom image sizes (themes, page builders, sliders) and want to reduce storage bloat safely.
Features
Two-tab UI: Prune Files & Thumbnail Sizes
Dry-run mode with sample matches before any deletion
AJAX progress bar and batch deletes to avoid timeouts
Orphan -WxH discovery report and delete found dimensions
Limit to subfolder (All, year, or year/month)
Disable sizes for future uploads (does not unregister core sizes; simply prevents generation)
Hides disabled sizes from Media size dropdowns (optional filter)
Works per-site on single and multisite (run on each site as needed)
Usage
Prune Files
In the table, check the sizes you want to KEEP (e.g., thumbnail, medium, large, and optionally medium_large).
(Optional) Choose a subfolder (e.g., 2024/11) for a quicker, safer trial run.
Make Orphan discovery ON to see a report or do a deletion of found dimensions.
Click Run with Dry-run selected to preview matches.
Review results → switch to Delete when you’re confident.
Tip: Enable Orphan discovery only when you want to remove any extra -WxH sizes not exactly matching your KEEP list (great for cleaning legacy sizes like -1200x860 or .bak.jpg files).
Thumbnail Sizes
Uncheck any sizes you no longer want generated for future uploads.
Click Save changes.
(This prevents those sizes from being created going forward; existing files are unaffected until you prune them in Prune Files Tab.)
Technical Notes
Prevent generation via: intermediate_image_sizes_advanced (removes disabled sizes at upload time).
Optionally hide in UI via: image_size_names_choose and reduce the base list via intermediate_image_sizes.
Auto-scaled big image can be disabled with big_image_size_threshold if desired (not enabled by default).
Requires capability manage_options.
Privacy
This plugin does not collect personal data or send data to external services. It only reads and modifies files within your /uploads/ directory based on your actions.
