Skip to content

samvera-labs/lambda-layer-sharp-jp2

 
 

Repository files navigation

Deprecation Notice

To account for the new build and packaging systems used by sharp (>= v0.33.0) and libvips (>= v8.14.0), this repo has been superseded by samvera-labs/sharp-jp2-lambda-layer .

AWS Lambda layer for Sharp

Releases Build Layer ZIP

This AWS Lambda layer contains a pre-built Sharp binary. New releases are automatically published in this repository on each Sharp update.

Download

A pre-built layer zip file is available on the Releases page, alongside the size of the layer. Zip files for both x86_64 and arm64 are available.

Shared Public Layer

A public version of this layer is always available at arn:aws:lambda:us-east-1:$REGION:layer:libvips-sharp-jp2:$VERSION, where $REGION is any valid AWS region, and $VERSION is the layer version. The available versions can be listed using the AWS CLI command:

aws lambda list-layer-versions \
    --layer-name arn:aws:lambda:$REGION:625046682746:layer:libvips-sharp-jp2 \
    --query 'LayerVersions[*].LayerVersionArn' \
    --output text

Build

Dependencies

  • Docker

Steps

  1. Clone the repo:
    git clone [email protected]:samvera-labs/lambda-layer-sharp-jp2.git
    cd lambda-layer-sharp-jp2/
  2. Build the layer:
    bin/build
  3. Import created layer into your AWS account:
    aws lambda publish-layer-version --layer-name sharp-jp2 --description "Sharp layer with JP2 Support" --license-info "Apache License 2.0" --zip-file fileb://dist/sharp-layer.zip --compatible-runtimes nodejs16.x

Auto-publish

The build Github Action is automatically triggered by Dependabot, merged by Mergify and then published by the same Github Action.

Credits

Originally forked from Umkus/lambda-layer-sharp-jp2. Auto build by bubblydoo

About

Superseded by samvera-labs/sharp-jp2-lambda-layer

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 80.6%
  • Shell 11.7%
  • JavaScript 7.7%