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 .
This AWS Lambda layer contains a pre-built Sharp binary. New releases are automatically published in this repository on each Sharp update.
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.
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
- Docker
- Clone the repo:
git clone [email protected]:samvera-labs/lambda-layer-sharp-jp2.git cd lambda-layer-sharp-jp2/
- Build the layer:
bin/build
- 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
The build Github Action is automatically triggered by Dependabot, merged by Mergify and then published by the same Github Action.
Originally forked from Umkus/lambda-layer-sharp-jp2. Auto build by bubblydoo