-
AuthorPosts
-
June 2, 2016 at 6:34 pm #642175
I have read this post and similar ones and understand the extra image files that are created by Enfold on image upload, e.g. gallery, featured, masonry etc.
After checking my Uploads directory however I have seen that there are some additional files with these sizes (for an original file size of 2816 x 2112 px):
450 x 450 px
450 x 338 px
120 x 120 px
I’m guessing these files would appear to be created by config-woocommerce/config.php – but I do not have WooCommerce installed and don’t use it.Why are these extra image files being created on upload – and more to the point, how can I stop this happening (given that I will never use WooCommerce and don’t want to waste disk space on my hosting)?
- This topic was modified 8 years, 6 months ago by zimbo.
June 4, 2016 at 8:56 am #642877Hey zimbo,
To stop generating the thumbnails please refer to this post https://kriesi.at/support/topic/how-to-disable-enfold-creating-media-image-sizes/#post-305466
Best regards,
VinayJune 4, 2016 at 1:22 pm #642924@Vinay – please refer to my original post and the previous answer I referenced: I know how to remove/prevent the standard Enfold images such as gallery, featured, masonry etc.
My question relates to the extra images I believe are being created by config-woocommerce/config.php with this code:
//product thumbnails $avia_config['imgSize']['shop_thumbnail'] = array('width'=>120, 'height'=>120); $avia_config['imgSize']['shop_catalog'] = array('width'=>450, 'height'=>450); $avia_config['imgSize']['shop_single'] = array('width'=>450, 'height'=>999, 'crop' => false);
1. There’s a comment in that code module that says “check if the plugin is enabled, otherwise stop the script” – WooCommerce is not installed, so surely these images should not be created?
2. That issue aside, please advise how I need to alter this code section in my child functions.php to stop the WooCommerce image generation as well:
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 );
June 6, 2016 at 8:41 pm #643611Hi,
Wordpress is cropping images by default when uploading them and if you want to control this behavior you can use a plugin like this: https://wordpress.org/plugins/simple-image-sizes
I hope this will help :).Best regards,
AndyJune 8, 2016 at 4:31 pm #644940@Andy – that plugin does not stop the WooCommerce thumbnails from being created by /config-woocommerce/config.php, which is the question I asked how to do in my first post, and which has still not been answered, although I think I’ve now figured it out. (-:
For one image uploaded Enfold creates an additional 19 images which triples the disk space used. I am never going to use all of those image types in the website and so I will use the remove_image_size function to stop the ones I don’t want from being created on upload to save space/bloat.
That plugin has however highlighted even more images that Enfold creates as well as gallery, magazine, masonry etc.
So please can you/someone advise what & where these image sizes are used for? If I don’t use them anywhere, I will stop these being created as well, but I need to know where Enfold might use them i.e. are they “core” to the theme.
arpw-thumbnail
wpbdp-thumb
wpbdp-largeJune 8, 2016 at 8:01 pm #645030I have since discovered that
-
arpw-thumbnail
wpbdp-thumb
wpbdp-largeare not Enfold related but plugin images so this query can now be closed.
June 8, 2016 at 8:23 pm #645037Hey!
Glad you got it short out.
Please feel free to let us know if you need anything else, we will be more than happy to assist.Regards,
Basilis -
AuthorPosts
- You must be logged in to reply to this topic.