Git Product home page Git Product logo

image-resizer-lambda's Introduction

Image Resizer Lambda

This Lambda will be invoked when a file is uploaded to a particular bucket. It will fetch the file that was added, resize it, and store the output in a different bucket.

Run Locally

Clone the project

  git clone https://github.com/OneLightWebDev/image-resizer-lambda.git

Install Dependencies

# Required options if on mac
npm install --arch=x64 --platform=linux --target=16x sharp

Environment Variables

Remember set the DEST_BUCKET in your Lambda's "Configuration" tab. To do this, open your Lambda in the AWS Console, select the "Configuration" tab, then click "Environment variables"

DEST_BUCKET=thumbnails-bucket-name

Deployment

npm run package

Running the command above will zip your source code and dependencies. The zip can then be uploaded to your Lambda.

image-resizer-lambda's People

Contributors

nikitadev-yt avatar

Stargazers

Sebastian Wolf avatar Zhengliang Wang avatar Ryon Whyte avatar  avatar  avatar Vikas Singh avatar dodooh avatar MAGhani avatar  avatar Benjamin Chavez avatar Samuel Munroe avatar Yidnekachew avatar Werayoot kunphai avatar Shewitgebreyesus avatar Michael Cox avatar Eustațiu Iagăru avatar Bruno Laranjeira avatar  avatar Nguyễn Quang Tuấn avatar Seunggeun-VIRNECT avatar

Watchers

 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.