You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
Reacted by Ted Stresen-Reuter, Degliame David and Denisa
Activity
danielbachhuber commentedon Jan 19, 2017
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.