Skip to content

justintanner/image-butler

Repository files navigation

image-butler Build Status Coverage Status

Resize, crop and rotate images using AWS Lambda and S3.

example image

How it works

  1. User uploads an image directly to S3 with encoded configuration data
  2. image-butler resizes multiple thumbnails, crops or rotates the image
  3. image-butler posts back to your server with the newly processed image(s)

Requirements

  • Node 6.10.2 (same version as AWS Lambda)
  • Amazon Web Services

Installation

git clone git@github.com:justintanner/image-butler.git
yarn 

Configuration

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

Deploying to AWS Lambda

Once the settings in .env match your environment

npm run create

Special Thanks

Inspired by aws-lambda-image

About

Resize, crop and rotate images using AWS Lambda and S3.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published