Skip to content

Commit 0f2eb54

Browse files
authored
Merge pull request #33 from faradaytrs/main
Update sharp to 0.33.4, include av1 support for encoding and decoding
2 parents f742649 + 21dcb86 commit 0f2eb54

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed

README.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,17 @@ This lambda layer contains the node module [sharp](https://github.com/lovell/sha
6767

6868
### Dependencies
6969
The following table lists the release version of this repo together with the version of each dependency. Patch versions are related to the build process or documentation and have the same dependencies as the minor version.
70-
| release | sharp | libvips | libheif | libwebp | libde265 | x265 | nodejs |
71-
|---------|--------|---------|---------|---------|-----------|--------|--------|
72-
| 1.2.0 | 0.28.2 | 8.10.6 | 1.12.0 | 1.2.0 | 1.0.8 | - | 12 |
73-
| 1.1.0 | 0.27.0 | 8.10.5 | 1.10.0 | 1.1.0 | 1.0.8 | - | 12 |
74-
| 2.0.0 | 0.29.1 | 8.11.3 | 1.12.0 | 1.2.1 | 1.0.8 | - | 14 |
75-
| 3.0.0 | 0.30.7 | 8.12.2 | 1.12.0 | 1.2.4 | 1.0.8 | - | 16 |
76-
| 3.1.0 | 0.30.7 | 8.12.2 | 1.12.0 | 1.2.4 | 1.0.8 | - | 16 |
77-
| 3.2.0 | 0.30.7 | 8.12.2 | 1.12.0 | 1.3.2 | 1.0.12 | - | 16 |
78-
| 4.1.0 | 0.33.3 | 8.15.2 | 1.17.6 | 1.4.0 | 1.0.15 | 3.6 | 20 |
79-
| 4.1.3 | 0.33.3 | 8.15.2 | 1.17.6 | 1.4.0 | 1.0.15 | 3.6 | 20 |
70+
| release | sharp | libvips | libheif | libwebp | libde265 | x265 | libaom | nodejs |
71+
|---------|--------|---------|---------|---------|-----------|--------|--------|--------|
72+
| 1.2.0 | 0.28.2 | 8.10.6 | 1.12.0 | 1.2.0 | 1.0.8 | - | | 12 |
73+
| 1.1.0 | 0.27.0 | 8.10.5 | 1.10.0 | 1.1.0 | 1.0.8 | - | | 12 |
74+
| 2.0.0 | 0.29.1 | 8.11.3 | 1.12.0 | 1.2.1 | 1.0.8 | - | | 14 |
75+
| 3.0.0 | 0.30.7 | 8.12.2 | 1.12.0 | 1.2.4 | 1.0.8 | - | | 16 |
76+
| 3.1.0 | 0.30.7 | 8.12.2 | 1.12.0 | 1.2.4 | 1.0.8 | - | | 16 |
77+
| 3.2.0 | 0.30.7 | 8.12.2 | 1.12.0 | 1.3.2 | 1.0.12 | - | | 16 |
78+
| 4.1.0 | 0.33.3 | 8.15.2 | 1.17.6 | 1.4.0 | 1.0.15 | 3.6 | | 20 |
79+
| 4.1.3 | 0.33.3 | 8.15.2 | 1.17.6 | 1.4.0 | 1.0.15 | 3.6 | | 20 |
80+
| main | 0.33.5 | 8.15.3 | 1.18.2 | 1.4.0 | 1.0.15 | 3.6 | 3.9.1 | 20 |
8081

8182
### CompatibleRuntimes
8283
- `nodejs12.x` (v1.x)

layer/Makefile

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Library Versions
22
WEBP_VERSION=1.4.0
33
LIBDE265_VERSION=1.0.15
4-
LIBAOM_VERSION=3.9.0
4+
LIBAOM_VERSION=3.9.1
55
X265_VERSION=3.6
6-
LIBHEIF_VERSION=1.17.6
7-
VIPS_VERSION=8.15.2
8-
SHARP_VERSION=0.33.3
6+
LIBHEIF_VERSION=1.18.2
7+
VIPS_VERSION=8.15.3
8+
SHARP_VERSION=0.33.5
99

1010
PREFIX_PATH=/usr/local
1111
LIB_PATH=$(PREFIX_PATH)/lib
@@ -50,12 +50,11 @@ x265:
5050
curl -L https://bitbucket.org/multicoreware/x265_git/downloads/x265_$(X265_VERSION).tar.gz | tar zx
5151
cd x265_$(X265_VERSION) && cd build/linux && cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$(PREFIX_PATH) ../../source && make && make install
5252

53-
# libaom:
54-
# # libaom
55-
# curl -L https://storage.googleapis.com/aom-releases/libaom-${LIBAOM_VERSION}.tar.gz | tar zx
56-
# cd libaom-${LIBAOM_VERSION} && cd build && cmake -DCONFIG_AV1_ENCODER=0 -DBUILD_SHARED_LIBS=1 -DENABLE_TESTS=0 -DENABLE_DOCS=0 -DCMAKE_INSTALL_PREFIX=${PREFIX_PATH} -DCMAKE_INSTALL_LIBDIR=${LIB_PATH}/lib .. && make V=0 && make install
53+
libaom:
54+
curl -L https://storage.googleapis.com/aom-releases/libaom-${LIBAOM_VERSION}.tar.gz | tar zx && \
55+
cd libaom-${LIBAOM_VERSION} && cd build && cmake -DCONFIG_AV1_ENCODER=1 -DBUILD_SHARED_LIBS=1 -DENABLE_TESTS=0 -DENABLE_DOCS=0 -DCMAKE_INSTALL_PREFIX=${PREFIX_PATH} -DCMAKE_INSTALL_LIBDIR=${PREFIX_PATH}/lib .. && make V=1 && make install
5756

58-
libheif: x265 libde265
57+
libheif: x265 libde265 libaom
5958
# libheif
6059
curl -L https://github.com/strukturag/libheif/releases/download/v$(LIBHEIF_VERSION)/libheif-$(LIBHEIF_VERSION).tar.gz | tar zx
6160
cd libheif-$(LIBHEIF_VERSION) && mkdir build && cd build && cmake -DCMAKE_INSTALL_LIBDIR=$(LIB_PATH) --preset=release-noplugins .. && make V=0 && make install

layer/src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
"node": ">=20.3"
1212
},
1313
"dependencies": {
14-
"sharp": "^0.33.3"
14+
"sharp": "^0.33.4"
1515
}
1616
}

0 commit comments

Comments
 (0)