I have a website on which there is a "shop" page. Each product has a thumbnail assigned to it.
I set a custom thumbnail size with this code:
if ( function_exists( 'add_image_size' ) ) {
add_image_size( 'products', 150, 84, true );
}
Cropping works fine, but when the image is too tall WordPress crops it to the "height" parameter and the final result is a thumbnail too narrow to look good.
Is there a way to make WordPress select a part of an image (150x84 px fragment) and use it as a thumbnail instead of resizing the image? It is important for thumbnails to stay at 150x84 px EXACTLY while not being too narrow or too short.