how to get actual resolution of image in javascript 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;