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