Skip to content

Commit 361ece2

Browse files
authored
WIP - Update dependancies readying for PHP 8.3 support
Pending an upstream fix being merged here: Imagick/imagick#641
1 parent aba7990 commit 361ece2

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

layers/imagick/Dockerfile

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,28 @@ RUN LD_LIBRARY_PATH= yum -y install libpng-devel libjpeg-devel lcms2-devel Image
1010

1111
# Compile libwebp since AL2 ships with v0.3, and v0.4 or higher is required to builder the other libs
1212
WORKDIR ${IMAGICK_BUILD_DIR}
13-
RUN curl -Ls -o libwebp.tar.gz https://github.com/webmproject/libwebp/archive/refs/tags/v1.3.1.tar.gz
13+
RUN curl -Ls -o libwebp.tar.gz https://github.com/webmproject/libwebp/archive/refs/tags/v1.3.2.tar.gz
1414
RUN tar xzf libwebp.tar.gz
15-
WORKDIR ${IMAGICK_BUILD_DIR}/libwebp-1.3.1
15+
WORKDIR ${IMAGICK_BUILD_DIR}/libwebp-1.3.2
1616
RUN autoreconf -i && automake && autoconf
1717
RUN ./configure --prefix ${INSTALL_DIR} --exec-prefix ${INSTALL_DIR}
1818
RUN make -j $(nproc)
1919
RUN make install
2020

2121
# Compile libde265 (libheif dependency)
2222
WORKDIR ${IMAGICK_BUILD_DIR}
23-
RUN curl -Ls -o libde265.tar.gz https://github.com/strukturag/libde265/releases/download/v1.0.12/libde265-1.0.12.tar.gz
23+
RUN curl -Ls -o libde265.tar.gz https://github.com/strukturag/libde265/releases/download/v1.0.14/libde265-1.0.14.tar.gz
2424
RUN tar xzf libde265.tar.gz
25-
WORKDIR ${IMAGICK_BUILD_DIR}/libde265-1.0.12
25+
WORKDIR ${IMAGICK_BUILD_DIR}/libde265-1.0.14
2626
RUN ./configure --prefix ${INSTALL_DIR} --exec-prefix ${INSTALL_DIR}
2727
RUN make -j $(nproc)
2828
RUN make install
2929

3030
# Compile libheif
3131
WORKDIR ${IMAGICK_BUILD_DIR}
32-
RUN curl -Ls -o libheif.tar.gz https://github.com/strukturag/libheif/releases/download/v1.13.0/libheif-1.13.0.tar.gz
32+
RUN curl -Ls -o libheif.tar.gz https://github.com/strukturag/libheif/releases/download/v1.17.5/libheif-1.17.5.tar.gz
3333
RUN tar xzf libheif.tar.gz
34-
WORKDIR ${IMAGICK_BUILD_DIR}/libheif-1.13.0
34+
WORKDIR ${IMAGICK_BUILD_DIR}/libheif-1.17.5
3535
RUN ./configure --prefix ${INSTALL_DIR} --exec-prefix ${INSTALL_DIR}
3636
RUN make -j $(nproc)
3737
RUN make install
@@ -47,9 +47,9 @@ RUN cp bin/gs /tmp/gs
4747

4848
# Compile the ImageMagick library
4949
WORKDIR ${IMAGICK_BUILD_DIR}
50-
RUN curl -Ls -o ImageMagick.tar.gz https://github.com/ImageMagick/ImageMagick/archive/refs/tags/7.1.1-15.tar.gz
50+
RUN curl -Ls -o ImageMagick.tar.gz https://github.com/ImageMagick/ImageMagick/archive/refs/tags/7.1.1-22.tar.gz
5151
RUN tar xzf ImageMagick.tar.gz
52-
WORKDIR ${IMAGICK_BUILD_DIR}/ImageMagick-7.1.1-15
52+
WORKDIR ${IMAGICK_BUILD_DIR}/ImageMagick-7.1.1-22
5353
RUN ./configure --prefix ${INSTALL_DIR} --exec-prefix ${INSTALL_DIR} --with-webp --with-heic --disable-static --with-freetype=yes
5454
RUN make -j $(nproc)
5555
RUN make install
@@ -61,6 +61,7 @@ RUN convert -list configure
6161
WORKDIR ${IMAGICK_BUILD_DIR}
6262
RUN git clone https://github.com/Imagick/imagick
6363
WORKDIR ${IMAGICK_BUILD_DIR}/imagick
64+
# TODO; update the commit hash this PR has been merged with PHP 8.3 support: https://github.com/Imagick/imagick/pull/641
6465
RUN git reset --hard 28f27044e435a2b203e32675e942eb8de620ee58
6566
RUN phpize
6667
RUN ./configure --with-imagick=${INSTALL_DIR}

layers/imagick/config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"php": [
33
"80",
44
"81",
5-
"82"
5+
"82",
6+
"83"
67
]
78
}

0 commit comments

Comments
 (0)