get image dimension using it's source 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;