-
AuthorPosts
-
January 24, 2020 at 12:36 am #1177946
Hey ya’ll,
Been using Enfold forever, still love it! Recently was going through my uploads folder (I am a wedding/storm photographer, upload a ton of images) and realized that everytime I upload an image, 20 different versions get made at various sizes. Had over 600k images in there, got it cut back to about 80,000 after a lot of work :)
So the functions.php has a big section that I commented out so it doesn’t create all those extra sizes…because honestly none of those are ever used from what I can tell.
But it’s still creating six versions. I did change the actual Settings > Media in WordPress itself to only do a Large size 960 wide.
So why is there also a 900×600,768×512,450×450, 450×300 and 360×240.
Is this the theme or possible something else in a plugin, etc?
Thank you!
January 26, 2020 at 4:40 pm #1178508Hey MikeOlbinski,
Sorry for the late reply, please try using the plugin Simple Image Sizes this will show you all of the image sizes from WordPress, Enfold, and any plugins and allow you to remove them.Best regards,
MikeJanuary 27, 2020 at 1:51 am #1178543Thanks Mike,
I tried that and it broke my site just now :( Plugin hasn’t been updated in 9 months and untested with current version. Any other ideas?
January 27, 2020 at 11:29 am #1178641Hi,
I just tested and it’s working fine, but I don’t have 80k in images. This plugin uses a WP core function that doesn’t change so it doesn’t get updated often. The nice thing about the plugin was it listed all of the sizes in use. So for WP reserved sizes it is recommend to set them to zero to stop them from being created and for theme and plugin sizes you can unset them. Here is a good article about it.
This user reported a function for removing all of the image sizes perhaps give it a try.Best regards,
MikeJanuary 27, 2020 at 3:52 pm #1178728Mike,
It was a syntax error that was breaking the plugin for me. “Unexpected ‘ [ ‘ on line 8” or something like that.
But I don’t need to get rid of old stuff, I did that already, I need to prevent it from creating 10 files everytime it uploads a new image. Right now it’s still making like 6-7 sizes that I don’t want. I just want the base file and then the 960xwhatever for blog posting.
January 28, 2020 at 11:43 am #1178965Hi,
To remove the 7 sizes that you don’t want please see the article above it lists the functions to use to remove many of the common WordPress sizes, and in the section “Disable Other Sizes” it explains how to remove custom sizes. You already commented out the Enfold sizes and you said that is working correct?Best regards,
Mike -
AuthorPosts
- You must be logged in to reply to this topic.