Skip to content

Latest commit

 

History

History
29 lines (16 loc) · 797 Bytes

README.md

File metadata and controls

29 lines (16 loc) · 797 Bytes

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