I wanted to add a new image size to the theme I have. But the image sizes are not working correctly.
add_theme_support( 'post-thumbnails' ); add_image_size( 'bch-microsite-slider-image', 1450, 620 ); add_image_size( 'bch-microsite-hero-image', 1450, 315 ); add_image_size( 'bch-microsite-blog-image', 1000, 670, array( 'center', 'center') ); add_image_size( 'bch-microsite-blog-image1', 1000, 670 ); add_image_size( 'bch-microsite-blog-image2', 1000, 650 ); add_image_size( 'bch-microsite-blog-image3', 1000, 620 );
The first two calls were already in the theme, but the apparently never worked right but I never really noticed since I wasn't using them. I added the 3rd call as what I wanted, and the 4th through 6th calls are an experiment.
The new sizes never exceed the "large" size, but I don't see a reference to that anywhere in the documentation. Do I have to change the "large" size, or is there some other problem? Any help would be greatly appreciated.
Here are the results of running Regenerate Thumbnails are a single image: All the image sizes reported by Regenerate Thumbnails are correct and it generates the correctly sized image files in the uploads folder. However, when selecting the image from the media library, the incorrect sizes are still being shown:
When the 3rd size is inserted into a post the code uses the correctly sized file (artwork-1-1000x670.jpg) but uses the size reflected in the image size drop-down list (640 by 429).