Tagged: thumbnail
-
AuthorPosts
-
April 8, 2017 at 7:14 pm #774648
When I upload an image to the media gallery. It appears to generate anywhere from 4-18 thumbnails. That is quite ridiculous and a massive waste since I don’t use any but maybe 2 versions. Is this enfold’s doing? How do I stop all the thumbnail generations? Now I have literally tens of thousands of copies of images wasting away.
- This topic was modified 7 years, 8 months ago by dethfire.
April 8, 2017 at 8:14 pm #774669Hey dethfire,
This is a core WordPress issue, at WP > Settings > Media > Image sizes you will see the 3 addition images that are created for everyone you upload. I’m not sure if there is a practical way around this as image sizes are served by screen sizes.Best regards,
MikeApril 8, 2017 at 8:17 pm #774674Thanks! I zeroed those out, but it appears the rest are generated by enfold and I don’t use any of them. It should be an option to disable instead of automatically creating a dozen versions of the same image. Image size can be dynamically changed for screen size via CSS.
- This reply was modified 7 years, 8 months ago by dethfire.
April 8, 2017 at 8:41 pm #774686Hi,
This post discuses removing the entire set of image sizes from the functions.php
https://kriesi.at/support/topic/how-to-disable-enfold-creating-media-image-sizes/#post-305466
Yet perhaps using a plugin would be better: https://wordpress.org/plugins/thumbnail-cleaner/Best regards,
MikeApril 8, 2017 at 10:05 pm #774713Hi Mike, I will look at the page you sent me. For the plugin that will end up removing all featured post images.
April 8, 2017 at 11:17 pm #774733April 8, 2017 at 11:29 pm #774739I think that should work thanks. I just have to remember to redo the edit when upgrading. Would be best to create an option to select what sizes we want generated.
- This reply was modified 7 years, 8 months ago by dethfire.
April 8, 2017 at 11:55 pm #774742Hi,
Please feel free to request – or vote if already requested – such feature on Enfold feature request form.Best regards,
MikeApril 9, 2017 at 12:17 am #774747@dethfire I suggest you use the filter hook ‘avf_modify_thumb_size’ in a child theme rather then modifying the functions.php file in the parent theme. Using the filter you can easily unset specific sizes without having to change anything after an update. Just keep in mind the removed size will still appear in the size selector box in the media gallery while adding images to posts, pages and layout elements.
August 16, 2017 at 6:25 pm #840038I’d made the following alterations to functions file
/*
* register the layout classes
*
*/$avia_config[‘layout’][‘fullsize’] = array(‘content’ => ‘av-content-full alpha’, ‘sidebar’ => ‘hidden’, ‘meta’ => ”,’entry’ => ”);
$avia_config[‘layout’][‘sidebar_left’] = array(‘content’ => ‘av-content-small’, ‘sidebar’ => ‘alpha’ ,’meta’ => ‘alpha’, ‘entry’ => ”);
$avia_config[‘layout’][‘sidebar_right’] = array(‘content’ => ‘av-content-small alpha’,’sidebar’ => ‘alpha’, ‘meta’ => ‘alpha’, ‘entry’ => ‘alpha’);/*
* Register additional image thumbnail sizes
* Those thumbnails are generated on image upload!
*
* If the size of an array was changed after an image was uploaded you either need to re-upload the image
* or use the thumbnail regeneration plugin: http://wordpress.org/extend/plugins/regenerate-thumbnails/
*/$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’][‘entry_with_sidebar’] = array(‘width’=>845, ‘height’=>321); // big images for blog and page entries
$avia_config[‘imgSize’][‘entry_without_sidebar’]= array(‘width’=>1210, ‘height’=>423 ); // images for fullsize pages and fullsize slider
$avia_config[‘imgSize’] = apply_filters(‘avf_modify_thumb_size’, $avia_config[‘imgSize’]);Yet I still get 9 images generated every upload. It’s totally bonkers. I don’t know how others accept this.
August 19, 2017 at 5:29 pm #841322Hi dethfire,
Here is an article for you
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.