title: Validate Image width & height before upload in Node, Express With Multer
body: <p>I am building a project in <code>Nodejs</code> with <code>express</code> framework &amp; <code>ejs</code> as view engine, I am stuck at a point where i need to upload images and i am using <code>Multer</code> but the issue is i want to set a criteria where image is not uploaded to server if the image height or width is less than or more than preset size, say <code>70px * 40Px</code>, earlier i used to do this seamlessly with codeignitor.</p>
  
  <p>All the solutions i could search for use GM (Graphics Magick) but that comes into play after upload of the image via Multer. I am not looking for code help but any suggestion on any known plugin in npm which can do this for me.</p>
  
  <p>Note : I dont trust on client side validation, even if i use one i still keep server side validation working so i am looking for server side solution for this too.</p>