// Get on screen imagevar screenImage = $("#image");// Create new offscreen image to testvar theImage = new Image();theImage.src = screenImage.attr("src");// Get accurate measurements from that.var imageWidth = theImage.width;var imageHeight = theImage.height;