get width of image tag code example
Example 1: javascript get width of image
image.width
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;