I am creating a jQuery plugin.
How do I get the real image width and height with Javascript in Safari?
The following works with Firefox 3, IE7 and Opera 9:>
Another suggestion is to use imagesLoaded plugin.
$("img").imagesLoaded(function(){ alert( $(this).width() ); alert( $(this).height() ); });