cagataygurturk / image-resizer-service

Serverless image resizing service for AWS
https://serverlessrepo.aws.amazon.com/#/applications/arn:aws:serverlessrepo:us-east-1:526515951862:applications~image-resizer-service
MIT License
101 stars 51 forks source link
api-gateway aws aws-lambda lambda serverless

image-resizer-service

This serverless application deploys a Lambda function and API Gateway to your AWS account that reads images from a S3 bucket (whose name defined at deployment) and serves them through API Gateway.

The API Gateway respects the file organization on S3 bucket. For example, an image stored in s3://example-bucket/example-folder/example.jpg will be served from https://xxxxxx.execute-api.us-east-1.amazonaws.com/production/example-folder/example.jpg

To resize the same image, simply give dimensions as width and height GET parameters.

IMPORTANT: This application requires Imagick to be deployed in the Lambda runtime. The easiest way of accomplishing this is to deploy this serverless application. After deploying it, please note down the ARN of the Lambda layer created since this application will require that ARN as a parameter.

After deploying the application, you are strongly recommended to deploy a CDN distribution in front of API Gateway, so your responses are cached and it will improve performance and reduce costs significantly.

Release Notes

0.1.4

0.1.3

0.1.2

0.1.1

0.1

Initial version

License

MIT License (MIT)