title: Is there any option to reduce the image size and resize the image in nodejs with multer functionality?
body: <pre><code>var storage = multer.diskStorage({
    destination: function (req, file, cb) {
      cb(null, '/tmp/my-uploads')
    },
    filename: function (req, file, cb) {
      cb(null, file.fieldname + '-' + Date.now())
    }
  })
  
  var upload = multer({ storage: storage })
  </code></pre>
  
  <p>I need to resize the image and compress the image size to lowest and upload into the directory.Any help?</p>