Skip to content

krolow/serverless-thumbnails

Repository files navigation

serverless-thumbnails

Resize images added to a s3 bucket automatically ✨

Environment Configuration

  • SOURCE_BUCKET=%source% where you upload the images
  • DESTINATION_BUCKET=%destination% where the thumbnails are going to be created
  • SIZES=100x100,200x200,300x300,500x500 the thumbnails sizes can be multiple
  • CONCURRENCY=1 the concurrency to be applied in the thumbnails creation

Running

It uses native dependency, so it is necessary to be at linux or use the docker image to install the deps

  1. docker-compose run thumbnails
  2. serverless deploy

License

Licensed under The MIT License
Redistributions of files must retain the above copyright notice.

Author

Vinícius Krolow - krolow[at]gmail.com

About

A serverless lambda function to resize images added to s3 bucket

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published