Canvas définir la hauteur de l'image
var imageHeight=100;
var imageWidth=100;
context.drawImage(image, 0, 0,imageHeight,imageWidth);
Friendly Hawk
var imageHeight=100;
var imageWidth=100;
context.drawImage(image, 0, 0,imageHeight,imageWidth);
<canvas width="500" height="500" id="myCanvas"></canvas>
<!--use old school height/width to set correct aspect ratio on canvas css/style does not work-->
<canvas width="500" height="500" id="myCanvas"></canvas>