前言介紹
- 這款 WordPress 外掛「Image Cleanup」是 2013-10-11 上架。
- 目前有 2000 個安裝啟用數。
- 上一次更新是 2017-11-28,距離現在已有 2712 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 3.0.1 以上版本才可以安裝。
- 有 63 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
opicron |
外掛標籤
內容簡介
你曾在WordPress中縮放或裁剪上傳的圖片嗎?你曾經試過不同的圖像生成外掛嗎?你曾經更改或添加過各種媒體圖像大小嗎?如果是,你的內容文件夾可能充滿了未使用和未引用的圖像。這些圖像殘留物將一直佔用你的內容文件夾直到永遠。
圖像清理將索引這些(以及更多)未引用的圖像。未引用的圖像未在WordPress數據庫中索引,也未被文章、腳本或備份還原元數據使用。請注意,具有有效數據庫元數據但未在文章中使用的圖像此時不會被索引。這超出了此外掛的範圍。
圖像清理還可以查找沒有元數據和有錯誤元數據的圖像。
節約佔用未引用/備份圖像的空間!
修復不正確的元數據(大小)
批量修復/刪除功能
極大數據集的分頁
日誌選項卡易於查看!
日誌選項卡中有詳細信息!
完全還原功能!
特別適用於開發人員!
以類的形式編寫以避免任何衝突!
高度可配置以避免某些設置上的內存和/或超時
在我一個月大的網站(50個文件和250個附件大小變體)上,此外掛找到了95個未參照的圖像,我可以不受任何衝突地刪除它們。
有報告稱,此外掛在一個網站上索引並刪除了超過23,000張圖像。有關詳細信息,請參見論壇/評論。
圖像清理工作流詳細信息
從數據庫檢索所有附件圖像(包括大小變體);
查找wp-content文件夾中的所有圖片;
從實際找到的圖像中減去附件(和大小變體);
上述將導致一個列表包含無效圖像,這些圖像未被數據庫引用。
文章將被搜索圖像,找到的圖像將從無效文件中減去(如果有);
wp-content中的腳本將被搜索圖像,它們將從無效文件中減去(如果有);
還原尺寸比例後的備份圖像將從無效圖像中減去;
已找到的未引用文件將與元數據進行檢查,以查看數據庫元條目是否仍然存在;
這導致各種圖像列表,其中圖像可以進行審核、修復或刪除。
索引後
索引後,你可以(暫時)將圖像移動到備份文件夾中,以在wp-content文件夾中檢查不帶圖像的站點。你也可以檢查../wp-content/uploads/image-cleanup/ID/logs文件夾中的日誌,以獲取有關索引的完整信息。
如果發現任何問題,可以通過將圖像還原到其原始位置來撤消圖像移動。
若在移動圖像至其他位置後未發現任何問題,則可能永久刪除圖像。
未來計劃新增內容
索引未使用的有效圖像
索引缺失的圖像大小(和生成缺失圖像的選項)
索引在文章中使用但遺漏的圖像
原文外掛簡介
Did you ever scale or crop uploaded images in wordpress? Did you ever try various image generating plugins? Did you ever change or add various media image sizes? If yes, chances are that your content folder is full of unused and unreferenced images. These image leftovers will remain cluttering your content folder until the end of days.
Image Cleanup will index these (and many more) unreferenced images. Unreferenced images are not indexed in the wordpress database and also not used by posts, scripts or backup restore meta data. Please note that images which have valid database metadata but are not used in posts are not indexed at this time. This is beyond the scope of this plugin.
Image Cleanup will also find images without meta data and images with incorrect meta data.
Save space taken up by unreferenced/backup images!
Fix incorrect metadata (sizes)
Bulk repair/delete functionality
Pagination for extremely large result sets
Logs tabs easily visible for reviewing!
Detailed information in log tabs!
Full restore functionality!
Especially useful for developers!
Written as class to avoid any conflicts!
Highly configurable to avoid memory and/or timeouts on some setups
On my one month old website with 50 files (and 250 attachment size variants) this plugin found 95 unreferenced images which I could remove without any conflicts.
There has been a reported case where this plugin indexed and removed over 23.000 images on a website. See forum/review for details
Image Cleanup workflow details
Retrieves all attachment images from the database (including size variants);
Finds all images in the wp-content folder;
Subtracts the attachment (and size variants) from physical found images;
The above will result in an list of invalid images which are not referenced by the database
Posts will be searched for images and found images will be subtracted from the invalid files (if any);
Scripts in wp-content will be searched for images and they will be subtracted from the invalid files (if any);
Backup images (for restoring images after scale/crop) will be subtracted from the invalid images;
Found unreferenced files will be checked against the meta data to see if the database meta entry still exist;
This results in various image lists in which the images can be reviewed, repaired or removed.
After indexing
After indexing you are able to (temporary) move the images to a backup folder to check the site without the images in the wp-content folder. You could also check the logs in the ../wp-content/uploads/image-cleanup/ID/logs folder for full information about the index.
If any problems are found you can revert the move of images by restoring them to their original locations.
When no problems arrise after moving the images to another location it is possible to permanently remove the images.
Future planned additions
Index unused valid images
Index missing image sizes (and option to generate missing images)
Index missing images which are used in posts
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Image Cleanup」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
延伸相關外掛(你可能也想知道)
Image Optimization by Optimole – Lazy Load, CDN, Convert WebP & AVIF, Optimize Images 》, Optimole的獨特之處在哪裡?, , 更小的圖片,同樣的品質, 完全自動化;設定一次就忘記它, 支援所有圖片格式, 支援Retina和WebP圖片, 以機器學習為基礎的自...。
Imsanity 》使用 Imsanity,自動調整大型圖片上傳大小。選擇你喜歡的尺寸和品質,讓 Imsanity 完成其餘所有工作。當投稿者上傳大於配置尺寸的圖片時,Imsanity 將自動將...。
Firelight Lightbox 》Easy FancyBox WordPress外掛為您的網站提供靈活美觀的光箱解決方案,幾乎適用於網站上的所有媒體連結。Easy FancyBox使用更新的傳統FancyBox jQuery擴展版本...。
Simple Lightbox 》Simple Lightbox 是一個非常簡單且可自定義的燈箱,在您的 WordPress 網站上添加它非常容易。, 功能, 自定義燈箱行為的選項位於外觀 > Lightbox 管理員菜...。
Robin image optimizer — save money on image compression 》需要專業支援嗎?, 開始免費支援, 開始高級支援, 透過減少圖像大小,讓您的網站加快速度。我們的 WordPress 圖像優化外掛,可以將圖像大小減少80%,而且不損...。
Responsive Lightbox & Gallery 》提供完整的 WordPress 相簿外掛所需一切, Responsive Lightbox and Gallery 外掛是一個全功能的 WordPress 相簿外掛,擁有強大的拖放相簿生成器和 Lightbox ...。
reSmush.it : The original free image compressor and optimizer plugin 》reSmush.it Image Optimizer 是一個 WordPress 外掛,透過 reSmush.it API 提供圖片優化服務。reSmush.it 使用多種高級演算法對圖像進行大小減小。API 支援最...。
Menu Image, Icons made easy 》這個外掛可以輕鬆地在選單項目中加入圖像或圖示,打造更好的網站選單。, 可以控制圖像或圖示的位置以及大小。, 這個 Menu Image 外掛還有其他功能,以下是其...。
Image Widget 》Image Widget 是一個簡單的外掛程式,利用 WordPress 原生媒體管理員,為您的網站新增圖片小工具。, 需要新增幻燈片、燈箱或隨機圖像嗎?, 請查看 Image Widg...。
Featured Image from URL (FIFU) 》h3>WordPress 外掛 - 用於顯示外部特色圖片、影片、音訊等等, FIFU 自 2015 年來已幫助全球數千個網站節省了儲存空間、處理時間和版權費用。, 如果您已經厭倦...。
Default Featured Image 》在媒體設定頁面上新增一個預設的特色圖像。如果沒有設定任何特色圖像,這個預設的特色圖像就會顯示。就這麼簡單。, 查看常見問題以獲取基本問題資訊。, 如果...。
All In One Favicon 》查看最新的WordPress交易以優化您的網站。, All In One Favicon為您的網站和管理頁面添加favicon。, 您可以使用您已經上傳的favicon或使用內置的上傳機制將fa...。
ImageMagick Engine 》透過讓 WordPress 使用 ImageMagick 而非標準的 GD 圖像庫,大幅提升重新調整大小的圖像品質。, 功能, , 在重新調整大小的圖像中保留嵌入式色彩設定檔, 自動...。
WP Featherlight – A Simple jQuery Lightbox 》WP Featherlight 是一個 WordPress 外掛,可為您的WordPress 網站添加一個極簡、高效、響應式 jQuery 燈箱。在其核心,WP Featherlight是一個用於 Featherlig...。
Phoenix Media Rename 》通過使用「Phoenix Media Rename」外掛,將您的媒體檔案重新命名,極大地提高您的 SEO。, 在Phoenix Media Rename 官方頁面上提供了完整的使用和設置指南。。