Resize, crop and rotate images using AWS Lambda and S3.
HTML C Roff C++ JavaScript CSS Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
graphicsmagick
scripts
src
test
.babelrc
.coveralls.yml
.env.template
.eslintignore
.eslintrc
.gitignore
.lambda-tester.json
.travis.yml
MIT-LICENSE
README.md
package.json
yarn.lock

README.md

image-butler Build Status Coverage Status

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

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

Uploading with the Client

Coming Soon

Protocol

Coming Soon

Special Thanks

Inspired by aws-lambda-image