jQuery validation file, validate image dimension before it's uploaded

jQuery validation file, validate image dimension before it's uploaded

I'm trying to validate files uploaded to be certain dimension size before it's uploaded.  Is there a way to get the height and width of the image? I'm using the validation  plugin