how to know the size of the image html code example
Example 1: how to change the size of an image in html
<img src='image.jpg' alt="Image" height="42" width="42">.
Example 2: get width of html photo
var img = new Image();
img.onload = function(){
var height = img.height;
var width = img.width;
// code here to use the dimensions
}
img.src = url;