Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1078729

    I have disabled the creation of multiple images by WordPress and Enfold using the Simple Image Sizes plugin and the well-referenced (in this forum) remove_image_size solution in my child theme functions.php.

    The only sizes I need/use on the site are shown on this screenshot.

    The vast majority of images are uploaded with our ‘standard’ size of 700 x 467 px.

    I have now discovered in the Uploads directories that ‘something’ is creating additional thumbnails, sized 400x267px and 620x414px (sometimes 620×413).

    The strange thing is that these unwanted thumbnails are not created for every image uploaded but on a seemingly random basis. i.e. only some images will have these extra sizes. In January, out of 153 image uploads, only 14 images had the unwanted thumbnails created.

    The other issue is that this happens only on images uploaded by an Administrator role. There are other roles who can upload files, but these do not have the unwanted thumbnails generated.

    I have searched the entire code base for add_image_size and set_post_thumbnail_size to see if I could figure anything out, but nothing came to light.

    I realise this could be theme related or might be a general WP issue, but does anyone have any idea how I might be able track down which piece of code (WP, plugin, theme) is creating these unwanted thumbnail files? So that I can then figure out how to stop it happening…

    #1079964

    Hi zimbo,

    This is more of a WordPress issue, and if you have already removed most of the images, you might want to check for the plugins, for example woocommerce also add some image size.

    Best regards,
    Nikko

    #1079999

    Can you absolutely confirm that Enfold does not create images of that size?

    I don’t use Woocommerce. And as I asked, can anyone offer some helpful ideas as to how I might start to track down the culprit?

    #1080211

    Hi zimbo,

    Yes, here are the image sizes used in Enfold:

    $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'=>845, 'height'=>684 );						// 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'=>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

    if woocommerce is activated here are some image sizes added:

    $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);

    Best regards,
    Nikko

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.