how to get image resolution js code example
Example 1: javascript get width of image
image.width
Example 2: javascript get image dimensions
var img = document.getElementById("myImageID");
var imgWidth = img.clientWidth;
var imgHeight = img.clientHeight;