How to create a single image style for both landscape and portrait images? In a Drupal 7 environment, I want to apply a style to all images within a view. I want every image to be 180px wide &amp; 128px high -OR- 128px wide and 180px high depending on the orientation of the original image.

Can this be done with an image style or do you know any module that would help in achieving this?
ImageCache Actions


  Aspect Switcher new 2009-08 - lets you perform different actions or
  use different dimensions based on whether the image is 'landscape' or
  'portrait'