WordPress creates too many thumbnails

  • Unknown's avatar

    I’m running a wordpress (v4.9.6) with woocommerce (v3.4.3) and the BeTheme. We’re using the standard woocommerce API to push our products to the webshop.

    Now all of a sudden when a product is uploaded, there are 19 (!) different thumbnails created. I have no idea from where they get these sizes. I only have the standard ones selected. This is causing a lot of issues on the server side since some shops have over 5000 products.

    I’ve attached a screenshot of 1 article with all the different thumbs.

    Anyone with an idea from were they come and how I could disable this? I already found in the theme functions file there is this:

        if( ! function_exists( 'mfn_add_image_size' ) )
        {
        	function mfn_add_image_size() {
        
        		// Backend --------------------------------------------
        
        			/*
        			 * Featured Image
        			 */
        			set_post_thumbnail_size( 260, 146, false );
        
        			/*
        			 * List Thumbnail for custom post formats
        			 */
        			add_image_size( '50x50', 50, 50, false );
        
        
        		// Builder Items --------------------------------------
        
        			/*
        			 * Clients | do NOT crop logos
        			 */
        			add_image_size( 'clients-slider', 150, 75, false );
        
        			/*
        			 * Slider | Muffin Builder Item
        			 *
        			 * TODO: Verify proportions (? size)
        			 */
        			add_image_size( 'slider-content', 1630, 860, true );
        
        			/*
        			 * Testimonials
        			 *
        			 * TODO: change it to 200x200
        			 */
        			add_image_size( 'testimonials', 	85,   85,   true );
        
        			/*
        			 * Sticky Navigation | Blog, Portfolio & Shop
        			 * Widget: Recent Posts
        			 *
        			 * TODO: connect with testimonials & change it to 200x200
        			 */
        			add_image_size( 'blog-navi', 		80,   80,   true );
        
        
        		// Blog & Portfolio -----------------------------------
        
        			/*
        			 * Portfolio | Style: Masonry flat
        			 *
        			 * TODO: SIZE too big? (use cover/width 100%? ipad?)
        			 */
        			add_image_size( 'portfolio-mf', 	1280, 1000, true );
        			add_image_size( 'portfolio-mf-w',   1280, 500,  true );	/* Wide */
        			add_image_size( 'portfolio-mf-t',   768,  1200, true );	/* Tall	*/
        
        			/*
        			 * Portfolio | Style: List
        			 *
        			 * TODO: Verify proportions (? size)
        			 */
        			add_image_size( 'portfolio-list', 	1920, 750,  true );
        
        
        		// Blog & Portfolio | Dynamic sizes -------------------
        
        			/*
        			 * Blog & Portfolio | List
        			 */
        			$archivesW = mfn_opts_get( 'featured-blog-portfolio-width', 960 );
        			$archivesH = mfn_opts_get( 'featured-blog-portfolio-height', 750 );
        
        			$archivesC = mfn_opts_get( 'featured-blog-portfolio-crop', 'crop' );
        			$archivesC = ( $archivesC == 'resize' ) ? false : true;
        
        			add_image_size( 'blog-portfolio', $archivesW, $archivesH, $archivesC );
        
        			/*
        			 * Blog & Portfolio | Single
        			 */
        			$singleW = mfn_opts_get( 'featured-single-width', 1200 );
        			$singleH = mfn_opts_get( 'featured-single-height', 480 );
        
        			$singleC = mfn_opts_get( 'featured-single-crop', 'crop' );
        			$singleC = ( $singleC == 'resize' ) ? false : true;
        
        			add_image_size( 'blog-single', $singleW, $singleH, $singleC );
        
        	}
        }
        add_action( 'after_setup_theme', 'mfn_add_image_size', 11 );

    But I don’t think this is the issue since a bunch of thumbnail sizes aren’t specified here.

  • Unknown's avatar

    You’re using the WordPress installation rather than WordPress.com. Help with that can be found at https://wordpress.org/support/

  • Unknown's avatar

    Hi,
    Sorry! I’ll post again over there. Thanks.

  • The topic ‘WordPress creates too many thumbnails’ is closed to new replies.