Why is hard cropping for the blog-grid-even
size not working?
When uploading an original that is 667x596, the blog-grid-odd
and blog-grid-featured
sizes are correctly cropped from the left top edge. But the blog-grid-even
size is resized from the original 667x596 size, not cropped.
I've tried this without using the add_action(after_setup_theme...
, force regenerated thumbnails many times, deleted all images and started over, etc., with no luck. This is not a GD library issue; the other image sizes are being cropped.
I've tried add_image_size( 'blog-grid-even', 323, 301, true);
and nothing changes for that size. I can change the crop parameters for the other sizes, and they change after I force regenerate thumbnails.
This is not an image display issue on the front end; the blog-grid-even
image in /uploads/ is being resized,not cropped.
function wpse_setup_theme() {
add_theme_support( 'post-thumbnails' );
add_image_size( 'blog-grid-odd', 323, 596,array( 'left', 'top' ) );
add_image_size( 'blog-grid-even', 323, 301, array( 'left', 'top' ) );
add_image_size( 'blog-grid-featured', 667, 347, array( 'left', 'top' ) );
}
add_action( 'after_setup_theme', 'wpse_setup_theme' );
Original:
667, 347:
323, 596
323, 301