Skip to content

Commit 53eda2a

Browse files
committed
link to SAR
1 parent 31d65ef commit 53eda2a

File tree

5 files changed

+41
-2
lines changed

5 files changed

+41
-2
lines changed

LICENSE.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ImageMagick license, see https://imagemagick.org/script/license.php

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ clean:
1414
rm -rf build result
1515

1616
list-formats:
17-
$(DOCKER) $(MOUNTS) --entrypoint /opt/imagemagick/bin/identify -t $(DOCKER_IMAGE) -list format
17+
$(DOCKER) $(MOUNTS) --entrypoint /opt/bin/identify -t $(DOCKER_IMAGE) -list format
1818

1919
bash:
2020
$(DOCKER) $(MOUNTS) --entrypoint /bin/bash -t $(DOCKER_IMAGE)

README-SAR.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# ImageMagick Lambda Layer for Amazon Linux 2 AMIs
2+
3+
Static build of ImageMagick for Amazon Linux 2, packaged as a Lambda layer.
4+
Bundles ImageMagick 7.0.8-45, including convert, mogrify and identify tools
5+
and support for jpeg, gif, png, tiff and webm formats.
6+
7+
This application provides a single output, `LayerVersion`, which points to a
8+
Lambda Layer ARN you can use with Lambda runtimes based on Amazon Linux 2 (such
9+
as the `nodejs10.x` runtime).
10+
11+
For an example of how to use the layer, check out
12+
https://github.com/serverlesspub/imagemagick-aws-lambda-2/tree/master/example

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ Scripts to compile ImageMagick utilities for AWS Lambda instances powered by Ama
44

55
Amazon Linux 2 instances for Lambda no longer contain system utilities, so `convert`, `mogrify` and `identify` from the [ImageMagick](https://imagemagick.org) package are no longer available.
66

7+
## Usage
8+
9+
Absolutely the easiest way of using this is to pull it directly from the AWS Serverless Application repository into a CloudFormation/SAM application, or deploy directly from the Serverless Application Repository into your account, and then link as a layer.
10+
11+
For more information, check out the [image-magick-lambda-layer](https://serverlessrepo.aws.amazon.com/applications/arn:aws:serverlessrepo:us-east-1:145266761615:applications~image-magick-lambda-layer) application in the Serverless App Repository.
12+
13+
For manual deployments and custom builds, read below...
14+
715
## Prerequisites
816

917
* Docker desktop

template.yaml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
AWSTemplateFormatVersion: 2010-09-09
22
Transform: AWS::Serverless-2016-10-31
33
Description: >
4-
Static build of ImageMagick for AWS Linux 2,
4+
Static build of ImageMagick for Amazon Linux 2,
55
including convert, mogrify and identify tools
66
and support for jpeg, gif, png, tiff and webm formats.
77
@@ -23,3 +23,21 @@ Outputs:
2323
LayerVersion:
2424
Description: Layer ARN Reference
2525
Value: !Ref ImageMagickLayer
26+
27+
Metadata:
28+
AWS::ServerlessRepo::Application:
29+
Name: image-magick-lambda-layer
30+
Description: >
31+
Static build of ImageMagick for Amazon Linux 2,
32+
packaged as a Lambda layer. Bundles ImageMagick 7.0.8-45.
33+
34+
Including convert, mogrify and identify tools
35+
and support for jpeg, gif, png, tiff and webm formats.
36+
Author: Gojko Adzic
37+
SpdxLicenseId: ImageMagick
38+
LicenseUrl: LICENSE.txt
39+
ReadmeUrl: README-SAR.md
40+
Labels: ['layer', 'image', 'lambda', 'imagemagick']
41+
HomePageUrl: https://github.com/serverlesspub/imagemagick-aws-lambda-2
42+
SemanticVersion: 1.0.0
43+
SourceCodeUrl: https://github.com/serverlesspub/imagemagick-aws-lambda-2

0 commit comments

Comments
 (0)