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.

安裝方式

See the standard installation instructions at WordPress.org or WPBeginner.

使用者評論

2024 年 6 月 22 日
Having local backups of all of my original source photos, and never planning to regenerate thumbnails on this particular WordPress site, I went ahead with the drastic action of deleting all the originals. This plugin was very easy to use. Just know ahead of time what you’re getting into if you follow through with this action.
2023 年 5 月 24 日
This plugin is simple and fast and works brilliantly! It saves disk space usage by quickly and effectively removing all of the original, unscaled images that were over 2560px on the longest edge when uploaded.
閱讀全部 3 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Delete Unscaled Images〉的開發相關工作。

參與者

將〈Delete Unscaled Images〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.2

  • Added bulk delete Media submenu page.

1.1

  • Hooked into image upload to delete originals immediately.

1.0

  • Crude bulk process as proof of concept.