|
1 | 1 | --- |
2 | | -# Feel free to add content and custom Front Matter to this file. |
3 | | -# To modify the layout, see https://jekyllrb.com/docs/themes/#overriding-theme-defaults |
4 | | - |
5 | 2 | layout: home |
6 | 3 | --- |
7 | 4 |
|
8 | 5 |     |
9 | 6 |
|
10 | | -[lambda-layer-canvas-nodejs](https://github.com/charoitel/lambda-layer-canvas-nodejs) published on [AWS Serverless Application Repository](https://serverlessrepo.aws.amazon.com/applications/arn:aws:serverlessrepo:us-east-1:990551184979:applications~lambda-layer-canvas-nodejs) packages node-canvas and its dependencies as AWS Lambda Layer. |
| 7 | +Canvas Layer for AWS Lambda is published and available on [AWS Serverless Application Repository](https://serverlessrepo.aws.amazon.com/applications/arn:aws:serverlessrepo:us-east-1:990551184979:applications~lambda-layer-canvas-nodejs), and GitHub at [charoitel/lambda-layer-canvas-nodejs](https://github.com/charoitel/lambda-layer-canvas-nodejs). The layer aims to provide a Cairo backed Mozilla Web Canvas API implementation layer for AWS Lambda, powered by [node-canvas](https://github.com/Automattic/node-canvas). |
11 | 8 |
|
12 | 9 | ## About node-canvas |
13 | 10 |
|
14 | | -[node-canvas](https://github.com/Automattic/node-canvas) is a Cairo backed Canvas implementation for Node.js. It implements the [Mozilla Web Canvas API](https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API) as closely as possible. For the current API compliance, please check [Compatibility Status](https://github.com/Automattic/node-canvas/wiki/Compatibility-Status). |
| 11 | +[node-canvas](https://github.com/Automattic/node-canvas) is a Cairo backed Canvas implementation for Node.js. It implements the [Mozilla Web Canvas API](https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API) as closely as possible. For the latest API compliance, you may check [Compatibility Status](https://github.com/Automattic/node-canvas/wiki/Compatibility-Status). |
15 | 12 |
|
16 | 13 | ## How this layer is built? |
17 | 14 |
|
18 | | -The Lambda Layer is built from source of node-canvas npm package on EC2 instance, with following native dependencies installed. Please check ``` build-layer.sh ``` for details. |
| 15 | +The layer is built from source of node-canvas npm package on [amazonlinux](https://hub.docker.com/_/amazonlinux) dev container instance, with following native dependencies installed. You may check the build layer script, ``` build-layer.sh ```, which is available in repository, for details. |
19 | 16 |
|
20 | | -```console |
| 17 | +```bash |
21 | 18 | gcc-c++ cairo-devel pango-devel libjpeg-turbo-devel giflib-devel librsvg2-devel pango-devel bzip2-devel jq python3 |
22 | 19 | ``` |
23 | 20 |
|
24 | | -Since AWS Lambda is a secure and isolated runtime and execution environment, this layer aims to target AWS Lambda compatible build. As there are canvas libraries and frameworks relying on node-canvas running on Node.js runtime, this layer also tries to include and support these libraries and frameworks. |
| 21 | +Since AWS Lambda is a secure and isolated runtime and execution environment, the layer aims to target AWS Lambda compatible and native build. As there are canvas libraries and frameworks relying on node-canvas running on Node.js runtime, this layer may also try to include and support these libraries and frameworks. Currently there are two frameworks are included when building and packaging the layer: |
| 22 | + |
| 23 | +- [Fabric.js](#fabricjs-support) |
| 24 | +- [Konva](#konva-support) |
25 | 25 |
|
26 | 26 | ### Fabric.js support |
27 | 27 |
|
|
0 commit comments