You have to wait , till your image will be loaded , and then access to its sizes:
function imageSize(img){
var theImage = new Image();
theImage.onload = function(){
var imgwidth = theImage.width;
var imgheight = theImage.height;
alert(imgwidth+'-'+imgheight);
}
theImage.src = img.attr('src');
}