scale image in Drupal
I believe this module will do the trick:

ImageCache Actions


  Effects provided
  
  ...
  
  
  Aspect Switcher - lets you perform different actions or use different    dimensions based on whether the image is 'landscape' or
  'portrait'