multer-sharp-addon
Multer storage engine with resize image function before save the uploaded file.
Support S3 or Disk Storage as destination
TODO
- Auto resize image before upload
- [] Auto create thumbnail
- [] Config width & height for resizing (now only height that supported)
- [] Add test
Installation
npm install multer-sharp-addon
atau yarn add multer-sharp-addon
How to Use
const multerSharp =
Disk storage
const confStorage = { ; } { ; } const storage = ;const upload = ;
S3 storage
const s3 = apiVersion: '2006-03-01';const confStorage = s3 { ; } { ; } const storage = ;const upload = ;