lib/middlewares/imageProcessorMiddleware.js
function sendFile(imagePath) {
      response.set(headers);
      response.download(imagePath, request.query.filename);
    }
function sendFile(imagePath) {
      response.set(headers);
      response.download(imagePath, request.query.filename);
    }
function sendFile ( imagePath ) { response . set ( headers ) ; response . download ( imagePath , request . query . filename ) ; }
Sends an image to client as response.

@param {String} imagePath The absolute image path
Sends an image to client as response .