title: Rounded corner using gm in nodejs
body: <p>I am trying to round corners on an image using nodejs to process the images. I feel like the best library to do this would be gm but since I cannot use gm I have to use the imagick adapter as such</p>
  
  <pre>
  
  var gm = gm.subClass({ imageMagick: true });
  
  gm("img.jpg").autoOrient().resize(50, 50).write('/path', callback);
  
  </pre>
  
  <p>From here I cannot figure out how to get rounded corners. I do not want to do this in css since it is for a mobile app and client size it makes lags. Edges must be smooth.</p>