how to get width of image from image data 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;