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

php-worker install ImageMagick, the number supported format is 0 #2943

Closed
niming175 opened this issue Apr 9, 2021 · 0 comments · Fixed by #2944
Closed

php-worker install ImageMagick, the number supported format is 0 #2943

niming175 opened this issue Apr 9, 2021 · 0 comments · Fixed by #2944

Comments

@niming175
Copy link

Description:

I set PHP_WORKER_INSTALL_IMAGEMAGICK =true to install ImageMagick extension on the php-work, but on my project about imagick function can't work!

Expected Behavior:

1、after build, enter the box of php-worker
2、input php --ri imagick , found the ImageMagick supported formats is 0;
image

3、I add code imagemagick solved the proplem

#Install ImageMagick:
ARG INSTALL_IMAGEMAGICK=false
ARG IMAGEMAGICK_VERSION=latest
ENV IMAGEMAGICK_VERSION ${IMAGEMAGICK_VERSION}
RUN set -eux; \
  if [ ${INSTALL_IMAGEMAGICK} = true ]; then \
    apk add --update --no-cache imagemagick-dev  imagemagick; \
    ...

Context information:

Output of git rev-parse HEAD

{paste here}

Output of docker version
v11.0

{paste here}

Output of docker-compose version

{paste here}

System info: Mac, Windows or Linux. Include which disto/version

{paste here}

Steps to reproduce the issue:

Stacktrace & Additional info:

{paste here}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants