DEV Community

Discussion on: Size matters - Image Compression with Lambda and S3

Collapse
 
madza profile image
Madza • Edited

If you don't need to store full quality images in S3 another option is to create a custom Sharp script to run during the image upload phase using their SDK. This way you could avoid Lambda function costs as well 😉

Collapse
 
umair1181 profile image
Umair Maqbool • Edited

do you have any clue how can we do that

Collapse
 
zessu profile image
A Makenzi

Uploading images during the processing step might slow down your application as a compression is CPU intensive and would likely block your threads leading to less throughput if you had a lot of requests coming in at the same time.