Skip to content
Resize, crop and rotate images using AWS Lambda and S3.
HTML C Roff C++ JavaScript CSS Shell
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
graphicsmagick
scripts
src
test
.babelrc
.coveralls.yml
.env.template
.eslintignore
.eslintrc
.gitignore
.lambda-tester.json
.nvmrc
.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.

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

You can’t perform that action at this time.