title: Node gm - resize image and preserve aspect ratio?
body: <p>Does Node gm have built-in support for resizing an image while preserving aspect ratio (ie., generating a thumbnail)?  Or should I get the image size, calculate the proper ratio, and then call resize?</p>
  
  <p>This question is inspired by <a href="https://stackoverflow.com/questions/273946/how-do-i-resize-an-image-using-pil-and-maintain-its-aspect-ratio">PIL's similar functionality</a>.</p>