I want to find out dimension of this image in px.
In jQuery
var h = $("img").height();
var w = $("img").width();
alert(h +"px", w +"px");
In PrototypeJS
var h = $('img').getHeight();
var w = $('img').getWidth();
alert(h);
alert(w);
using this two I get dimensions as 20px and 1350px for every image with their original different dimensions.