I\'m trying to scale an image proportionately to the canvas. I\'m able to scale it with fixed width and height as so:
context.drawImage(imageObj, 0, 0, 100,
context.drawImage(imageObj, 0, 0, 100, 100 * imageObj.height / imageObj.width)