ideas icon indicating copy to clipboard operation
ideas copied to clipboard

Delete generated images

Open joyously opened this issue 8 years ago • 1 comments

The uploads directory can get quite large with all the different sizes of images that are generated. I've taken to using plugins that bypass all that and only generate the ones that are referenced, so I'd like a command to delete all of the generated images to save space (and smaller backups) for older sites. It could be useful for when you want to change your image sizes also, although there are plugins that do that and even fix the references to the images to the new size names.

joyously avatar Jan 19 '17 20:01 joyously

Along these same lines: a command to scan your uploads directory and see if there are any orphaned image sizes (e.g. generated images that aren't actually in use by the theme).

However, one would also want to make sure the images aren't in use within post content before deleting them.

danielbachhuber avatar Jan 19 '17 21:01 danielbachhuber