Skip to content

Commit 3e303e5

Browse files
committed
Upgrade imagick dependencies
1 parent 0996c52 commit 3e303e5

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

layers/imagick/Dockerfile

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,25 @@ 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.2.tar.gz
13+
RUN curl -Ls -o libwebp.tar.gz https://github.com/webmproject/libwebp/archive/refs/tags/v1.4.0.tar.gz
1414
RUN tar xzf libwebp.tar.gz
15-
WORKDIR ${IMAGICK_BUILD_DIR}/libwebp-1.3.2
15+
WORKDIR ${IMAGICK_BUILD_DIR}/libwebp-1.4.0
1616
RUN autoreconf -i && automake && autoconf
1717
RUN ./configure --prefix ${INSTALL_DIR} --exec-prefix ${INSTALL_DIR}
1818
RUN make -j $(nproc) && make install
1919

2020
# Compile libde265 (libheif dependency)
2121
WORKDIR ${IMAGICK_BUILD_DIR}
22-
RUN curl -Ls -o libde265.tar.gz https://github.com/strukturag/libde265/releases/download/v1.0.14/libde265-1.0.14.tar.gz && tar xzf libde265.tar.gz
23-
WORKDIR ${IMAGICK_BUILD_DIR}/libde265-1.0.14
22+
RUN curl -Ls -o libde265.tar.gz https://github.com/strukturag/libde265/releases/download/v1.0.15/libde265-1.0.15.tar.gz && tar xzf libde265.tar.gz
23+
WORKDIR ${IMAGICK_BUILD_DIR}/libde265-1.0.15
2424
RUN ./configure --prefix ${INSTALL_DIR} --exec-prefix ${INSTALL_DIR}
2525
RUN make -j $(nproc) && make install
2626

2727
# Compile libheif
2828
WORKDIR ${IMAGICK_BUILD_DIR}
29-
RUN curl -Ls -o libheif.tar.gz https://github.com/strukturag/libheif/releases/download/v1.17.5/libheif-1.17.5.tar.gz && tar xzf libheif.tar.gz
30-
RUN mkdir ${IMAGICK_BUILD_DIR}/libheif-1.17.5/build
31-
WORKDIR ${IMAGICK_BUILD_DIR}/libheif-1.17.5/build
32-
RUN cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} ..
29+
RUN curl -Ls -o libheif.tar.gz https://github.com/strukturag/libheif/releases/download/v1.13.0/libheif-1.13.0.tar.gz && tar xzf libheif.tar.gz
30+
WORKDIR ${IMAGICK_BUILD_DIR}/libheif-1.13.0
31+
RUN ./configure --prefix ${INSTALL_DIR} --exec-prefix ${INSTALL_DIR}
3332
RUN make -j $(nproc) && make install
3433

3534
# Compile gs
@@ -41,8 +40,8 @@ RUN make -j $(nproc) && cp bin/gs /tmp/gs
4140

4241
# Compile the ImageMagick library
4342
WORKDIR ${IMAGICK_BUILD_DIR}
44-
RUN curl -Ls -o ImageMagick.tar.gz https://github.com/ImageMagick/ImageMagick/archive/refs/tags/7.1.1-22.tar.gz && tar xzf ImageMagick.tar.gz
45-
WORKDIR ${IMAGICK_BUILD_DIR}/ImageMagick-7.1.1-22
43+
RUN curl -Ls -o ImageMagick.tar.gz https://github.com/ImageMagick/ImageMagick/archive/refs/tags/7.1.1-38.tar.gz && tar xzf ImageMagick.tar.gz
44+
WORKDIR ${IMAGICK_BUILD_DIR}/ImageMagick-7.1.1-38
4645
RUN ./configure --prefix ${INSTALL_DIR} --exec-prefix ${INSTALL_DIR} --with-webp --with-heic --disable-static --with-freetype=yes
4746
RUN make -j $(nproc)
4847
RUN make install
@@ -54,7 +53,7 @@ RUN convert -list configure
5453
WORKDIR ${IMAGICK_BUILD_DIR}
5554
RUN git clone https://github.com/Imagick/imagick
5655
WORKDIR ${IMAGICK_BUILD_DIR}/imagick
57-
# TODO; update the commit hash once this PR has been merged with PHP 8.3 support: https://github.com/Imagick/imagick/pull/641
56+
# TODO; update the commit hash when there's a new release
5857
RUN git reset --hard 28f27044e435a2b203e32675e942eb8de620ee58
5958
RUN phpize
6059
RUN ./configure --with-imagick=${INSTALL_DIR}

0 commit comments

Comments
 (0)