Coder Social home page Coder Social logo

image-butler's Introduction

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 [email protected]: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

image-butler's People

Contributors

justintanner avatar

Stargazers

Derek avatar Szymon Skirgajłło avatar  avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.