Open 4d4ch4u32 opened 1 month ago
Encountering this since php 8.3.10 on CentOs 9 with default install options by pear as well.
See https://github.com/Imagick/imagick/issues/640, known issue.
It seems like master has a fix but no release yet has a fix. Either one needs to wait for a release or build from source.
Not making light of OSS being hard, but IMO if you can get away with using the gd extension instead I'd go that route.
This extension hasn't seen a healthy amount of development in over a year.
This works for me in PHP 8.3 - 8.3.11
# Install Imagick - works in PHP 8.3
RUN apt-get install -y libmagickwand-dev --no-install-recommends && rm -rf /var/lib/apt/lists/*
RUN mkdir -p /usr/src/php/ext/imagick
RUN chmod 777 /usr/src/php/ext/imagick
RUN curl -fsSL https://github.com/Imagick/imagick/archive/refs/tags/3.7.0.tar.gz | tar xvz -C "/usr/src/php/ext/imagick" --strip 1
RUN docker-php-ext-install imagick
RUN rm /etc/ImageMagick-6/policy.xml
I try to add the
imagick
php extension to my Docker container:The process fails with the following error: