Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Imagick PDF decorators missing on Alpine 3.19 #857

Open
Eddy84 opened this issue Dec 15, 2023 · 6 comments
Open

Imagick PDF decorators missing on Alpine 3.19 #857

Eddy84 opened this issue Dec 15, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@Eddy84
Copy link

Eddy84 commented Dec 15, 2023

Version of install-php-extensions

latest

Error description

As written in this issue:
ImageMagick/ImageMagick#6935

Imagick packages were split up into separate packages on alpine:3.19

We can't use imagick with PDFs anymore because imagemagick-pdf needs to be installed

I had to restrict our docker image to the previous version for now:
php:8.2-fpm-alpine3.18

Docker image

php:8.2-fpm-alpine

Minimal Dockerfile

ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN chmod uga+x /usr/local/bin/install-php-extensions && sync

# Install php extensions
RUN apk add --no-cache --virtual .build-deps $PHPIZE_DEPS \
#    && apk add --no-cache libedit-dev postgresql-dev libcurl \
    && install-php-extensions \
      bcmath \
      curl \
      exif \
      gd \
      gettext \
      iconv \
      igbinary\
      imagick \
      imap \
      intl \
      mbstring \
      mcrypt \
      opcache \
      pcntl \
      pgsql \
      pdo \
      pdo_pgsql\
      redis \
      xml \
      xsl \
      zip \
    && rm -f /var/cache/apk/*
@Eddy84 Eddy84 added the bug Something isn't working label Dec 15, 2023
@hexus
Copy link

hexus commented Jan 22, 2024

Indeed, it would be nice to know why we can't install imagick for PHP 8.3. I assume these extra dependencies for Alpine 3.19+ will need to be listed somewhere.

I too will need to stick with PHP 8.2 on Alpine 3.18 as a result, for now.

@mlocati
Copy link
Owner

mlocati commented Jan 22, 2024

it would be nice to know why we can't install imagick for PHP 8.3

See Imagick/imagick#641

@hexus
Copy link

hexus commented Jan 22, 2024

Thanks @mlocati, I landed there in the end after a little searching. Guess we're just waiting for the upstream. 🙂

@mlocati
Copy link
Owner

mlocati commented Jan 22, 2024

Indeed.

@mvorisek
Copy link
Contributor

mvorisek commented Feb 6, 2024

Before Alpine 3.18 we had to use this hack https://github.com/mvorisek/image-php/blob/a38b8a1ac588e68e5ed74a59dbd97b17e0b3a710/data/8.2-alpine/Dockerfile#L38 to reduce the image size.

related with upstream change https://gitlab.alpinelinux.org/alpine/aports/-/commit/61dce5f6a84d9f96ab7aa6437f12d2845b572ed8

I belive some basic codes like pdf should be always present on all OS (Debian, Alpine). Not sure is any codec still require the useless Ghostscript CLI app.

@mateusjatenee
Copy link

Hi — did anyone figure out a workaround for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants