From 79e4ed4b4bb82207878751b4d05fce63d7af6393 Mon Sep 17 00:00:00 2001 From: Anne van de Venis Date: Wed, 17 Jan 2024 10:48:59 +0100 Subject: [PATCH 1/2] feat(imagick): make `convert` available --- layers/imagick/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/layers/imagick/Dockerfile b/layers/imagick/Dockerfile index 32576203..430395ec 100644 --- a/layers/imagick/Dockerfile +++ b/layers/imagick/Dockerfile @@ -80,6 +80,7 @@ FROM scratch # Copy things we installed to the final image COPY --from=ext /tmp/gs /opt/bin/gs +COPY --from=ext /tmp/convert /opt/bin/convert COPY --from=ext /tmp/imagick.so /opt/bref/extensions/imagick.so COPY --from=ext /tmp/ext.ini /opt/bref/etc/php/conf.d/ext-imagick.ini COPY --from=ext /tmp/extension-libs /opt/lib From 432ae6764c88b13c62662a21f21608a67fbfc4ad Mon Sep 17 00:00:00 2001 From: Anne van de Venis Date: Wed, 17 Jan 2024 11:56:23 +0100 Subject: [PATCH 2/2] Copy convert to /tmp --- layers/imagick/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layers/imagick/Dockerfile b/layers/imagick/Dockerfile index 430395ec..608213e7 100644 --- a/layers/imagick/Dockerfile +++ b/layers/imagick/Dockerfile @@ -54,6 +54,7 @@ WORKDIR ${IMAGICK_BUILD_DIR}/ImageMagick-7.1.1-22 RUN ./configure --prefix ${INSTALL_DIR} --exec-prefix ${INSTALL_DIR} --with-webp --with-heic --disable-static --with-freetype=yes RUN make -j $(nproc) RUN make install +RUN cp /usr/bin/convert /tmp/convert # Show how ImageMagick is configured. See the "delicate" section RUN convert -list configure @@ -62,7 +63,7 @@ RUN convert -list configure WORKDIR ${IMAGICK_BUILD_DIR} RUN git clone https://github.com/Imagick/imagick WORKDIR ${IMAGICK_BUILD_DIR}/imagick -# TODO; update the commit hash once this PR has been merged with PHP 8.3 support: https://github.com/Imagick/imagick/pull/641 +# TODO; update the commit hash once this PR has been merged with PHP 8.3 support: https://github.com/Imagick/imagick/pull/641 RUN git reset --hard 28f27044e435a2b203e32675e942eb8de620ee58 RUN phpize RUN ./configure --with-imagick=${INSTALL_DIR}