I want to resize an image in magento keeping its aspect ratio and make it fill a rectangle with another aspect ratio.
Example:
My image is 640x480
And my rectangle is 100x50
I want the image to fill ALL the rectangle and crop what exceeds it.
I'm aware of keepFrame(FALSE) - It doesn't make the image fill the rectangle, instead it makes it fit inside and doesnt crop anything.
Also, if you familiar with Wordpress, what I want is the as doing: *add_image_size('home',370,256,true);*
Thank you :)