Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1421480

    For a client I needed to restyle their website. So I started to create a manual backup. In the backup folder I noticed that the daily backups (created automatically) had sizes larger than 2GB. I was in kind of shock, since it’s only a small website.

    Doing some research I found out that Enfold created huge amounts of images (thumbnails) for each image that has been uploaded. And even more strange: a lot of image files are way larger than the originals.

    I don’t need all these images and their sizes. I create my own images in Photoshop, crop them in the right aspect ratio and save them compressed. These are the only images I want to use.

    Searching at this forum I see a lot of people are struggling with this issue. It’s hard to find out the best solution.

    What is the best and easiest way anno 2023 to get rid of all the images/thumbnails I don’t need? Preferably I don’t want to code, don’t want to delete them manually through FTP and don’t want to install several external plugins…

    #1421559

    Hi Marc,

    I understand that you prefer not to use code however, to remove sizes that has been defined by Enfold you’ll need to add this code and insert in functions.php (preferably a child theme, or via some plugin that allows inserting of codes like WPCode):

    add_action('init', 'remove_enfold_image_sizes');
    
    function remove_enfold_image_sizes() {
      remove_image_size('square');
      remove_image_size('featured');
      remove_image_size('featured_large');
      remove_image_size('portfolio');
      remove_image_size('portfolio_small');
      remove_image_size('gallery');
      remove_image_size('magazine');
      remove_image_size('masonry');
      remove_image_size('entry_without_sidebar');
      remove_image_size('entry_with_sidebar');
      remove_image_size('shop_thumbnail');
      remove_image_size('shop_catalog');
      remove_image_size('shop_single'); 
      remove_image_size('shop_gallery_thumbnail');
    }

    As for removing unused images, here are some articles that you can check out:

    Hope this helps.

    Best regards,
    Nikko

    #1421588

    Hi Nikko, thanks for the quick reply and all the info; very much appreciated! :-)

    Does adding the code remove existing thumbnails? Or do I need to run a separate plugin like Regenerate Thumbnails, or something?

    Cheers,
    Marc

    #1421761

    Hi,
    The code above will not remove existing images, you will need to use a separate plugin like Regenerate Thumbnails, as I recall this one will remove the unused images.

    Best regards,
    Mike

    #1421799

    Okay, thanks for the additional info! ;-)

    You can mark this one as solved

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘How to reduce huge amount of images (and sizes) generated by Enfold?’ is closed to new replies.