Actually you can do this with javascript, but you have to load the image, so would the server if it is to get its dimensions. In either case, this can be done without displaying the image or page first. Here's some basic javascript code, just to get the image's dimensions:
Code:
var getDims = function(im){
var i = new Image(), w, h;
i.onload = function(){
w = i.width;
h = i.height;
/* do some other stuff here or call another function
that depends upon knowing the image's dimensions
which are now w and h and may be passed as parameters */
};
i.src = im;
};
Usage:
Code:
getDims('URL_to_Image_File');
Bookmarks