Drupal 6 Image Resize Thumbnail Maintain Aspect Ratio
You want the ImageCache module https://drupal.org/project/imagecache there are also additional actions if you require them https://drupal.org/project/imagecache_actions