Resize, crop and rotate images using AWS Lambda and S3.
- User uploads an image directly to S3 with encoded configuration data
image-butler
resizes multiple thumbnails, crops or rotates the imageimage-butler
posts back to your server with the newly processed image(s)
- Node 6.10.2 (same version as AWS Lambda)
- Amazon Web Services
git clone git@github.com:justintanner/image-butler.git
yarn
Generate the config file with the command
npm run config
Create an S3 bucket to temporarily store user uploads.
Edit the newly created .env
file adding the region and name of your new s3 bucket, for example:
IB_REGION=us-west-1
IB_BUCKET=my-temporary-upload-bucket
Once the settings in .env
match your environment
npm run create
Inspired by aws-lambda-image