title: Download Image File after Jimp Processed the Image
body: <p>I have this home route. In this home route I am using the Jimp library to process the image resize it and then change the quality and lastly save the image in the directory but I wanted to download the image so that user can download it on his machine. But it not downloading. I is correctly saving in the directory with the name output.jpg. Here is the code</p>
  
  <p>app.get("/", (req, res) => {</p>
  
  <p>res.type('jpg');
    res.attachment('output.jpg')</p>
  
  <p>jimp.read('lenna.png', (err, lenna) => {
    if (err) throw err;
    lenna
      .resize(256, 256) // resize
      .quality(60) // set JPEG quality
      .greyscale() // set greyscale
      .write('output.jpg'); // save</p>
  
  <p>res.download('output.jpg');
  });</p>