-
AuthorPosts
-
February 25, 2016 at 11:55 pm #589525
Hello Guys,
I was surprised that Enfold generating about 10 different image sizes, and after reading the thread, installed “Simple Image sizes” plugin. So If I leave only 3 image sizes, what repercussions I might have? Would layer slider still work on front page for mobile and desktops? Anything else I should be worried about?Thank you, Igor
- This topic was modified 8 years, 9 months ago by igorvavrik.
February 26, 2016 at 5:25 pm #589895Hi Igor!
Please refer to Josue’s post here – Please refer to Josue’s post here – https://kriesi.at/support/topic/disable-image-generation-in-17-different-sizes/#post-527765 to disable them
Best regards,
YigitFebruary 26, 2016 at 5:44 pm #589909yes, but what are disadvantages if I disable them , what will stop working (sliders, galleries etc?) ?
February 29, 2016 at 7:09 am #590583I inserted the code like you said “at the very end” of functions.php , the website stopped working, I had to upload this file from backup
function ava_image_sizes() { remove_image_size('masonry'); remove_image_size('magazine'); remove_image_size('widget'); remove_image_size('featured'); remove_image_size('featured_large'); remove_image_size('extra_large'); remove_image_size('portfolio_small'); remove_image_size('gallery'); remove_image_size('entry_with_sidebar'); remove_image_size('entry_without_sidebar'); remove_image_size('square'); } add_action( 'after_setup_theme', 'ava_image_sizes', 11 );
March 1, 2016 at 6:33 am #591352Hello Yigit, can you comment why adding this code crashed website? I had to reupload functions.php from backup
March 1, 2016 at 6:35 am #591354Is it possible to remove some lines from this code?
$avia_config['imgSize']['widget'] = array('width'=>36, 'height'=>36);// small preview pics eg sidebar news $avia_config['imgSize']['square'] = array('width'=>180, 'height'=>180); // small image for blogs $avia_config['imgSize']['featured'] = array('width'=>1500, 'height'=>430 ); // images for fullsize pages and fullsize slider $avia_config['imgSize']['featured_large'] = array('width'=>1500, 'height'=>630 ); // images for fullsize pages and fullsize slider $avia_config['imgSize']['extra_large'] = array('width'=>1500, 'height'=>1500 , 'crop' => false); // images for fullscrren slider $avia_config['imgSize']['portfolio'] = array('width'=>495, 'height'=>400 ); // images for portfolio entries (2,3 column) $avia_config['imgSize']['portfolio_small'] = array('width'=>260, 'height'=>185 ); // images for portfolio 4 columns $avia_config['imgSize']['gallery'] = array('width'=>710, 'height'=>575 );// images for portfolio entries (2,3 column) $avia_config['imgSize']['magazine'] = array('width'=>710, 'height'=>375 ); // images for magazines $avia_config['imgSize']['masonry'] = array('width'=>705, 'height'=>705 , 'crop' => false); // images for fullscreen masonry $avia_config['imgSize']['entry_with_sidebar'] = array('width'=>710, 'height'=>270); // big images for blog and page entries $avia_config['imgSize']['entry_without_sidebar']= array('width'=>1030, 'height'=>360 ); // images for fullsize pages and fullsize slider
March 3, 2016 at 10:14 am #592519Hey!
The disadvantage is that you don’t get to choose certain image size while inserting the image to post or assigning it to a post or a portfolio thumbnail.
To do any custom modifications please use a child theme so you wont lose it after a theme update.
http://kriesi.at/documentation/enfold/using-a-child-theme/You can go ahead and remove the lines you don’t want in child theme files.
Best regards,
Vinay KashyapOctober 30, 2017 at 11:13 am #870406Hi, just a heads up for anyone wanting to remove the automatically images, Enfold creates 3 extra image sizes in another file for it’s woocommerce template.
So beside the ones given above by igorvavrik, add these as well:remove_image_size('shop_thumbnail'); remove_image_size('shop_catalog'); remove_image_size('shop_single');
So my function looks like this:
//Disable loads of Enfold image sizes upon upload (to save space) 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'); }
Cheers
November 1, 2017 at 5:21 am #871062June 25, 2019 at 1:26 pm #1113218Hi, I am new to Enfold, and am setting up a photography website, and I have the same problem: the website is super slow.
If I use medium size images, the Thumbnails in Lightroom are blurred, so at the moment I use 1500 x 1000, and have deactivated WordPress compression.
I see that Enfold is still generating a huge amount of other sizes, but I can’t find the function.php to add this code.
Can someone help lease?June 25, 2019 at 7:28 pm #1113358Hi Jzumpfe,
Can you give us temporary admin access to your website in the private content box below, so that we can have a closer look?
Here are a few useful links for you
http://www.wpbeginner.com/wp-tutorials/how-to-increase-or-decrease-wordpress-jpeg-image-compression/
Best regards,
VictoriaJune 26, 2019 at 8:07 am #1113509Hi Victoria, thank you very much for those links, I actually know most of that.
I have found a workaround in the meantime, installing a plugin that deletes all unnecessary rendered Images, and that has cut page loading by half. I will provide my login anyway, and maybe you have some tips on how I can still increase page loading? It still counts as a slow site .
Thanks!
JessJune 27, 2019 at 6:32 pm #1114056Hi Jess,
Where do you have any blurred images? The website seems to look fine.
Best regards,
VictoriaJune 28, 2019 at 8:12 am #1114172HI Victoria, they are fine, as I had to upload them in a bigger size. in 800x800px, the big files look good, but the small previews not (found this solution in the forum). Obviously, this slows down my website though. I have installes super cache and removed all unused rendered image sizes. Is there any more I can do?
Thanks!June 28, 2019 at 6:34 pm #1114335Hi Jzumpfe,
Well, on the Enfold side not much, but you can have a look at the following links
Best regards,
VictoriaNovember 2, 2020 at 3:57 pm #1257628Hi,
I am having the same problem. Enfold is generating 20 images for every image uploaded.I found my website is running really slowly so decided to go through my media library as when I first started I added images that weren’t optimised. So i have been going through them all to reduce their size in hopes of speeding up my site. Whilst doing this I noticed that the lightbox view of my images is not nearly as clear or sharp as the images uploaded.
I found information about changing image sizes under settings> media and then increasing px size. This lead me to look at my ftp uploads folder to see what sizes were in there which is how I noticed each image has 20 generated copies at different sizes. That adds up to 1GB of images even though most of the original images are 100KB or there abouts. Surely this is slowing my site down dramatically?
How do I go through the uploaded ftp files to work out which are being used? I will delete any that aren’t being used but I have no idea how to tell which are important and which aren’t? I haven’t changed the any of the media image size settings to try and improve the lightbox view as I am worried doing so will generate even more images and slow my site down even more.
I am also using woo commerce which I am guessing is responsible for a few of the extra sizes. Please help!!!!
November 5, 2020 at 6:45 am #1258534Hi,
Thank you for the update.
That adds up to 1GB of images even though most of the original images are 100KB or there abouts. Surely this is slowing my site down dramatically?
This actually helps in speeding up the site because WordPress will be able to select and use a smaller versions of the image instead of serving up the original and larger version of the image. But it will definitely consume more space in your server.
I will delete any that aren’t being used but I have no idea how to tell which are important and which aren’t? I
This will actually depend on the content or the elements that are used in the site. Each thumbnail has it own uses and is designated to a specific element in the theme or site. It is important to note that WordPress automatically selects a different thumbnail if the assigned thumbnail is not found or was removed, so it is safe to disable any thumbnails that you think is not necessary for the site because WordPress will just pick another version of the thumbnail.
Best regards,
Ismael -
AuthorPosts
- You must be logged in to reply to this topic.