🡠 Back to Index

SharpStorage.js

Handles the compression and conversion of images to a consistent type

// Converts a file into JPEG and resizes it to width 1024px.
// Compresses file into a buffer
module.exports._handleFile = function _handleFile(req, file, cb)

//Deletes file from buffer
module.exports._removeFile = function _removeFile(req, file, cb)

Vendors