Skip to content

Delete generated images #24

Closed as duplicate
Closed as duplicate

Description

@joyously

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.

Activity

  1. danielbachhuber commented on Jan 19, 2017

    @danielbachhuber
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions