-
Hello everyone, I use Imagick as my image driver to create AVIF format files. Imagick works fine with AVIF files, but the V6 has a bug that turns transparent png files' backgrounds to black, which is fixed on V7. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hi! |
Beta Was this translation helpful? Give feedback.
-
The php:8.2 docker image is based (by default) on Debian 12 Bookworm. PS: imagick is the name of the PHP extension, ImageMagick is the name of the system library used by the imagick PHP extension. |
Beta Was this translation helpful? Give feedback.
-
If you manually install imagemagick, you have to tell the apt system thay it must not install the imagemagick defauly system libraries. You can do something like this: #!/bin/bash
# Setup a sane environment
set -o errexit
set -o nounset
# Update apt packages
apt-get update
# Install apt package required by imei
apt-get install -qy cmake libltdl-dev nasm
# Compile imagemagick with imei
curl -sSL https://dist.1-2.dev/imei.sh -o - | bash -s
# Install apt package required to mark apt packages as already installed
apt-get install -qy equivs
# Mark apt packages as already installed
markPackageAsIntstalled() {
# see https://unix.stackexchange.com/a/583756
PKGNAME="$1"
MPAI_TMP="$(mktemp -d)"
cd "$MPAI_TMP"
VERSION=99.99-99.99
RELEASE="experimental; urgency=low\n\n * Initial Release\n\n -- Dummy <dummy@example.com> Thu, 31 Dec 2099 00:00:00 +0000\n"
equivs-control ${PKGNAME}.ctl
sed -i "s/^Package:.*/Package: ${PKGNAME}/" ${PKGNAME}.ctl
sed -i "s/.*Changelog:.*/Changelog: dummychangelog/" ${PKGNAME}.ctl
echo -e "${PKGNAME} (${VERSION}) ${RELEASE}" > dummychangelog
sed -i "s/^Version:.*/Version: ${VERSION}/" ${PKGNAME}.ctl
equivs-build ${PKGNAME}.ctl 2>&1 > ${PKGNAME}.ctl.log
dpkg -i ${PKGNAME}*.deb
cd - >/dev/null
rm -rf cd "$MPAI_TMP"
}
markPackageAsIntstalled libmagickwand-dev
markPackageAsIntstalled libmagickwand-6.q16-6
markPackageAsIntstalled libmagickcore-6.q16-6-extra
markPackageAsIntstalled imagemagick-6-common
markPackageAsIntstalled libmagickcore-6-arch-config
markPackageAsIntstalled libmagickcore-6-headers
markPackageAsIntstalled libmagickcore-6.q16-6
markPackageAsIntstalled libmagickcore-6.q16-dev
markPackageAsIntstalled libmagickwand-6-headers
markPackageAsIntstalled libmagickwand-6.q16-dev
# Install the imagick PHP extension
install-php-extensions imagick
# Inspect the imagick PHP extension
php --ri imagick |
Beta Was this translation helpful? Give feedback.
If you manually install imagemagick, you have to tell the apt system thay it must not install the imagemagick defauly system libraries.
You can do something like this: