title: Resize image to exact size by maintaining aspect ratio nodejs
body: <p>I want to resize image to an exact size by maintaining aspect ratio and filling the empty space with transparency using nodejs.</p>
  
  <p>I am able to do it using canvas. But due to some server os issues I can not use canvas.</p>
  
  <p>I tried with imageMagick and gm. But couldn't find any option like these. Please show me a way to do this.</p>
  
  <p>Thanks in advance. </p>