serverless-python-image-resizing
serverless-python-image-resizing copied to clipboard
An image resizing API with Python and Serverless framework
Dynamic image resizing with Python and Serverless framework
In this example, we set up a dynamic image resizing solution with AWS S3 and a Serverless framework function written in Python. We use Pillow for image resizing.
Pre-requisites
In order to deploy the function, you will need the following:
- API credentials for AWS with persmissions to manage S3, IAM and API Gateway
- If not on Linux - Docker installed locally
Deploying the Serverless project
- Make a .env file with your AWS credentials, as in .env.example
- Deploy the Serverless project:
source .env
sls deploy
Example usage
https://XXX.execute-api.eu-west-1.amazonaws.com/dev/100x100/test.jpg