System.drawing.image imgphoto = system.drawing.image.Fromfile (Server.MAppath (YourFile));
Int SourceWidth = IMGphoto.width;
INT Sourceheight = imgphoto.height;