title: Canvas drawImage scaling
body: <p>I'm trying to scale an image proportionately to the canvas. I'm able to scale it with fixed width and height as so:</p>
  
  <pre><code>context.drawImage(imageObj, 0, 0, 100, 100)
  </code></pre>
  
  <p>But I only want to resize the width and have the height resize proportionately. Something like the following:</p>
  
  <pre><code>context.drawImage(imageObj, 0, 0, 100, auto)
  </code></pre>
  
  <p>I've looked everywhere I can think of and haven't seen if this is possible.  </p>