I'm using the
the_post_thumbnail function in my theme to generate thumbnails for a scrolling image slider.
I want the images to be sized to 260px width and 190px height so I have put
the_post_thumbnail(array(260,190)); in the theme.
These kind of works but some images resized but their proportions are maintained. This means I might get an image that gets resized to 260px width but its height is only 150px. This messes up the look of the slider so I want the function to crop some images so they are always exactly 260x160.
As I don't know what proportion the images that may be uploaded in the future the function must be able to deal with this. Is it possible?