Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion on rebuilding images with cleanup #26

Open
hollisterca opened this issue Jan 1, 2018 · 1 comment
Open

Suggestion on rebuilding images with cleanup #26

hollisterca opened this issue Jan 1, 2018 · 1 comment

Comments

@hollisterca
Copy link

When uploading a new image it creates lots of images. see attachment.
Any change your plugin can figure out which ones are still needed and suggest to delete the others (cleanup)?

images_sizes

@RistoNiinemets
Copy link
Collaborator

WordPress only "knows" of the images (and according sizes) that are defined. For example, if you change dimensions of some defined image size, then WordPress is unaware of the last image size and thereof files. Basically it means it's a problem throughout WordPress' handling of media images and sizes.

I understand cleanup (delete image sizes that are not defined) would be awesome, but I have to think about doing so without any risk of removing images that are in use or handled some other way (some plugins might be using images incorrectly). Thanks for the idea, this could be really awesome feature.

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

No branches or pull requests

2 participants