How to programatically resize image and respect aspect ratio when saving a node I was wondering if there is an api call that lets me resize an image and respect the aspect ratio.  Right now I am using image_resize to successfully resize an image to a given width and height but it ignores aspect ratio and distorts the images.  Is there an api call that will allow me to do this and maintain original aspect ratio?
image_scale() will do this if you just provide a width or a height rather than both.