@@ -10,29 +10,30 @@ 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
1212WORKDIR ${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
1414RUN tar xzf libwebp.tar.gz
15- WORKDIR ${IMAGICK_BUILD_DIR}/libwebp-1.3.1
15+ WORKDIR ${IMAGICK_BUILD_DIR}/libwebp-1.3.2
1616RUN autoreconf -i && automake && autoconf
1717RUN ./configure --prefix ${INSTALL_DIR} --exec-prefix ${INSTALL_DIR}
1818RUN make -j $(nproc)
1919RUN make install
2020
2121# Compile libde265 (libheif dependency)
2222WORKDIR ${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
2424RUN tar xzf libde265.tar.gz
25- WORKDIR ${IMAGICK_BUILD_DIR}/libde265-1.0.12
25+ WORKDIR ${IMAGICK_BUILD_DIR}/libde265-1.0.14
2626RUN ./configure --prefix ${INSTALL_DIR} --exec-prefix ${INSTALL_DIR}
2727RUN make -j $(nproc)
2828RUN make install
2929
3030# Compile libheif
3131WORKDIR ${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
3333RUN tar xzf libheif.tar.gz
34- WORKDIR ${IMAGICK_BUILD_DIR}/libheif-1.13.0
35- RUN ./configure --prefix ${INSTALL_DIR} --exec-prefix ${INSTALL_DIR}
34+ RUN mkdir ${IMAGICK_BUILD_DIR}/libheif-1.17.5/build
35+ WORKDIR ${IMAGICK_BUILD_DIR}/libheif-1.17.5/build
36+ RUN cmake -DCMAKE_INSTALL_PREFIX=${INSTALL_DIR} ..
3637RUN make -j $(nproc)
3738RUN make install
3839
@@ -47,9 +48,9 @@ RUN cp bin/gs /tmp/gs
4748
4849# Compile the ImageMagick library
4950WORKDIR ${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
51+ RUN curl -Ls -o ImageMagick.tar.gz https://github.com/ImageMagick/ImageMagick/archive/refs/tags/7.1.1-22 .tar.gz
5152RUN tar xzf ImageMagick.tar.gz
52- WORKDIR ${IMAGICK_BUILD_DIR}/ImageMagick-7.1.1-15
53+ WORKDIR ${IMAGICK_BUILD_DIR}/ImageMagick-7.1.1-22
5354RUN ./configure --prefix ${INSTALL_DIR} --exec-prefix ${INSTALL_DIR} --with-webp --with-heic --disable-static --with-freetype=yes
5455RUN make -j $(nproc)
5556RUN make install
@@ -61,6 +62,7 @@ RUN convert -list configure
6162WORKDIR ${IMAGICK_BUILD_DIR}
6263RUN git clone https://github.com/Imagick/imagick
6364WORKDIR ${IMAGICK_BUILD_DIR}/imagick
65+ # TODO; update the commit hash once this PR has been merged with PHP 8.3 support: https://github.com/Imagick/imagick/pull/641
6466RUN git reset --hard 28f27044e435a2b203e32675e942eb8de620ee58
6567RUN phpize
6668RUN ./configure --with-imagick=${INSTALL_DIR}
0 commit comments