Delete large original image files (Bulk)


The new way of handling big images introduced in WordPress 5.3 leads to a nice reduction in traffic but doesn’t offer any savings regarding storage space (usage of server disk space).

A customer uploaded a huge amount of large images. For Images larger then 2560px (with OR height) a scaled down version was automatically created and saved using the suffix -scaled
which is more than enough for our use case.

So far so good; Now i want to remove the huge original files, but only for when a -scaled version was generated. I know this can be done during upload, but can it be done afterwards?

Or is there an easy way to remove all images larger than 2560px?

PS: We are talking about at least 500 individual images here..

, , thomasmalley 4 years 2020-07-20T10:10:40-05:00 0 Answers 50 views 0

Leave an answer