Skip to content

A simple lambda that generates thumbnails from images dropped in an S3 bucket

License

Notifications You must be signed in to change notification settings

overlandnz/lambda-thumbnailer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

thumbnailer

A small NodeJS based Lambda that creates thumbnails from an image that is uploaded to S3.

You need to configure the S3 trigger yourself and add the following environment variables to your Lamda function.

Environment variables

Variable Description Example
DSTBUCKET The bucket to send the result to testbucket
DSTPATH The path in the new bucket to place the files thumbnails
SIZES A comma seperated list of widths 400,800,1200
CLEANUPSOURCE Should the source image be deleted? true/false
ACL Any custom ACL to apply public-read
COPYORIGINAL Copy the original to the destination bucket true/false

About

A simple lambda that generates thumbnails from images dropped in an S3 bucket

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published