Are there any JavaScript or jQuery APIs or methods to get the dimensions of an image on the page?
If you are using jQuery and you are requesting image sizes you have to wait until they load or you will only get zeroes.
$(document).ready(function() { $("img").load(function() { alert($(this).height()); alert($(this).width()); }); });