I've got some big images, I need to resize and crop. I want to set them up to 250x in width - that's easy in css. But I also want to maintain aspect ratio and while doing that I end up with images of varying height. Now, I'd like to crop them from hight to ensure that every image that's for example 250x or bigger in height would be cropped (centered preferrably). How would I go about doing that?
EDIT: Ok, I think I wasn't clear in my original post. What I want is: resize the image to 250px in width. If height is >150px, shrink the image while keeping the 250px width.