[WordPress] 外掛分享: Delete Unscaled Images

首頁外掛目錄 › Delete Unscaled Images
600+
安裝啟用
★★★★★
5/5 分(5 則評價)
701 天前
最後更新
問題解決
WordPress 5.3+ v1.2.4 上架:2022-10-31

內容簡介

WordPress 5.3引入了「大圖片處理」(“big image handling”),將上傳的圖片縮放至最大2560像素以供網站使用。WP會在完整尺寸圖片檔名中加入「-scaled」。原始的未縮放圖片仍保留在伺服器上。這意味著伺服器上可能儲存了許多不需要實際在網站上顯示的大型圖片。在我的情況下,用戶從其相機上傳了15MB的檔案。

在製作縮放版本和中介/縮略圖後,原始圖片就不再需要,只佔用儲存空間。刪除未縮放的圖片將刪除這些不需要的檔案。

首先,所有新上傳的檔案在調整大小的版本建立後立即刪除原始圖像。

其次,在媒體子選單中有一個批量刪除工具可處理現有的圖片。

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Delete Unscaled Images」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

WordPress 5.3 added “big image handling” that scales uploaded images to a maximum size of 2560 pixels for use on the website. WP adds “-scaled” to the full size image file name. The original, unscaled images are kept on the server. This can mean that many large images are stored on the server that aren’t ever actually going to be displayed on the website. In my case, users are uploading 15MB files from their cameras.
After the scaled version and intermediate/thumbnail images are generated, the originals are no longer needed and just taking up storage space. Delete Unscaled Images will remove those unneeded files.
First, original images are deleted immediately after the resized versions are created for all new uploads.
Second, there is a bulk deletion tool in the Media submenu to process existing images.

延伸相關外掛

文章
Filter
Mastodon