Docker: How to enable .webp support for imagemagick in PHP correctly?

Viewed 1927

Within my Dockerfile I do the following:

FROM urre/wordpress-nginx-docker-compose-image

# ... various other things ...

RUN apt-get update \
    && apt-get -y --no-install-recommends install \
        webp \
        imagemagick \
        libmagickwand-dev \
        libwebp-dev

This is basically running but when I do phpinfo(); webp is not within the supported formats:

Imagick PHPInfo

Tried various other things but nothing seems to work. Does anybody have some experience on how to add this correctly with Docker?

0 Answers
Related