Javascript plugin to validate width & height before upload in contact form 7

I am looking for a plugin to validate the min width and height ( 300x300px ) & max width and height ( 500x500px )
plus image ratio : 1:1
I want these to be done withing the contact form 7 upload button, as we will be uploading only images !

Please help !!!

Thanks.