https://github.com/bendog/zappa_s3_resize
An AWS Lambda to automatically resize S3 bucket image files, using Python3, Zappa and Pillow.
https://github.com/bendog/zappa_s3_resize
Last synced: about 1 year ago
JSON representation
An AWS Lambda to automatically resize S3 bucket image files, using Python3, Zappa and Pillow.
- Host: GitHub
- URL: https://github.com/bendog/zappa_s3_resize
- Owner: bendog
- Created: 2017-08-07T16:37:20.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-09T02:39:49.000Z (almost 9 years ago)
- Last Synced: 2025-02-08T03:44:45.259Z (over 1 year ago)
- Language: Python
- Size: 5.86 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Zappa S3 resize
An AWS Lambda to automatically resize S3 bucket image files, using Python3, Zappa and Pillow.
When a file is uploaded to the bucket specified in `zappa_settings.json`, the lambda will execute and create the image sizes specified in `config.py`
Inspired in part by [zappa_resize_image_on_fly](https://github.com/wobeng/zappa_resize_image_on_fly)
## Install
$ pip install -U -r requirements.txt
## Configure
create a `config.py` file, following the example file `config_example.py`, and specify your own aws settings in a `zappa_settings.json` based on `zappa_settings_example.json`
## Deploy
as specified in the [Zappa](https://github.com/Miserlou/Zappa)