[jQuery] ANNOUNCE: jQuery plugin to measure image dimensions

[jQuery] ANNOUNCE: jQuery plugin to measure image dimensions


Here's a little plugin to measure the original width and height of an
image.
http://blog.softwareunity.com/2009/09/measure-raw-image-dimensions-using.html
It has to pass the measurements to a callback so you use it like this:
$("IMG").imgSize(function(size){
alert(size.width + "x" + size.height + "px " + size.fileSize + "
bytes");
});
If anyone can think of a way to make it work without using a callback
then let me know!
George