Demo
Validate (Check) dimensions (Height and Width) of Image before Upload using HTML5 and jQuery