GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - woss/aws-lambda-layer-sharp: AWS Lambda Layer custom routine that gives you access to Sharp image library without installing, building and shipping the module with your functions. Just include it and use it.

BranchesTags
Open more actions menu

Latest commit

 

History

18 Commits
18 Commits

Folders and files

NameName
Last commit message
Last commit date
example
example
 
 
layers/sharp
layers/sharp
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
docker-compose.yml
docker-compose.yml
 
 
package.json
package.json
 
 
serverless.yml
serverless.yml
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

AWS Layer for Sharp 🚀🚀🚀

AWS Lambda Layers custom routine that gives you access to Sharp image library without installing, building and shipping the module with your functions. Just include it and use it.

Module is built on amazonlinux docker image and it's 100% compatible with nodejs10.x lambda environment.

This layer gives you:

  • 🚀 fast iteration when dealing with functions that resize images
  • 📦 ~30MB smaller functions, just because you don't ship them with sharp

How to Use this layer

Either check the example folder and follow the instruction on how to run the example, or in your AWS console add following ARN arn:aws:lambda:eu-west-1:502686283826:layer:sharp:7 when you are adding the layer.

This is last stable version.

Deploy and build the layer yourself

Building the layer

Docker must be installed.

Run docker-compose up --build in the root of the project. After that you will get the zip file under layers/sharp/out. I'm not sure why would you do it, since last version is already provided and sharp hasn't seen any major changes in a while. But i guess everyone loves BUILDING 😍.

Deploying

Again, from root of the project run yarn deploy

How to run example

cd example
yarn
yarn start

Then visit the following link

http://localhost:4000/sharp?width=800&metadata=true&convolve=true

to deploy run yarn deploy from the example folder

Image copyright

lucky.jpg is owned by me

About

AWS Lambda Layer custom routine that gives you access to Sharp image library without installing, building and shipping the module with your functions. Just include it and use it.

Topics

awslambdalayernodejsserverless-frameworksharp

Resources

Readme
MIT license
Activity

Stars

20 stars

Watchers

1 watching

Forks

9 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.