From 73b48fea8d4d6b5298f328681212cd825dd3c418 Mon Sep 17 00:00:00 2001 From: Dossy Shiobara Date: Tue, 9 Jan 2024 17:19:11 -0500 Subject: [PATCH 1/2] add imagick PHP extension back for PHP 8.x --- images/php/7.2-cli/Dockerfile | 2 +- images/php/7.2-fpm/Dockerfile | 2 +- images/php/7.3-cli/Dockerfile | 2 +- images/php/7.3-fpm/Dockerfile | 2 +- images/php/7.4-cli/Dockerfile | 2 +- images/php/7.4-fpm/Dockerfile | 2 +- images/php/8.0-cli/Dockerfile | 5 ++++- images/php/8.0-fpm/Dockerfile | 5 ++++- images/php/8.1-cli/Dockerfile | 5 ++++- images/php/8.1-fpm/Dockerfile | 5 ++++- images/php/8.2-cli/Dockerfile | 5 ++++- images/php/8.2-fpm/Dockerfile | 5 ++++- src/Command/Image/GeneratePhp.php | 1 + src/Compose/Php/ExtensionResolver.php | 2 +- 14 files changed, 32 insertions(+), 13 deletions(-) diff --git a/images/php/7.2-cli/Dockerfile b/images/php/7.2-cli/Dockerfile index 712c1f95..accec3da 100644 --- a/images/php/7.2-cli/Dockerfile +++ b/images/php/7.2-cli/Dockerfile @@ -29,7 +29,7 @@ ENV MAGENTO_RUN_MODE production ENV SENDMAIL_PATH /dev/null ENV PHPRC ${MAGENTO_ROOT}/php.ini -ENV PHP_EXTENSIONS bcmath bz2 calendar exif gd gettext intl mysqli opcache pdo_mysql redis soap sockets sodium sysvmsg sysvsem sysvshm xsl zip pcntl +ENV PHP_EXTENSIONS bcmath bz2 calendar exif gd gettext imagick intl mysqli opcache pdo_mysql redis soap sockets sodium sysvmsg sysvsem sysvshm xsl zip pcntl # Configure Node.js version RUN curl -sL https://deb.nodesource.com/setup_lts.x | bash diff --git a/images/php/7.2-fpm/Dockerfile b/images/php/7.2-fpm/Dockerfile index e0ee3cbd..51086033 100644 --- a/images/php/7.2-fpm/Dockerfile +++ b/images/php/7.2-fpm/Dockerfile @@ -22,7 +22,7 @@ ENV UPLOAD_MAX_FILESIZE 64M ENV SENDMAIL_PATH /dev/null ENV PHPRC ${MAGENTO_ROOT}/php.ini -ENV PHP_EXTENSIONS bcmath bz2 calendar exif gd gettext intl mysqli opcache pdo_mysql redis soap sockets sodium sysvmsg sysvsem sysvshm xsl zip pcntl +ENV PHP_EXTENSIONS bcmath bz2 calendar exif gd gettext imagick intl mysqli opcache pdo_mysql redis soap sockets sodium sysvmsg sysvsem sysvshm xsl zip pcntl # Install dependencies RUN apt-get update \ diff --git a/images/php/7.3-cli/Dockerfile b/images/php/7.3-cli/Dockerfile index 0cc15df7..fcec0aa6 100644 --- a/images/php/7.3-cli/Dockerfile +++ b/images/php/7.3-cli/Dockerfile @@ -29,7 +29,7 @@ ENV MAGENTO_RUN_MODE production ENV SENDMAIL_PATH /dev/null ENV PHPRC ${MAGENTO_ROOT}/php.ini -ENV PHP_EXTENSIONS bcmath bz2 calendar exif gd gettext intl mysqli opcache pdo_mysql redis soap sockets sodium sysvmsg sysvsem sysvshm xsl zip pcntl +ENV PHP_EXTENSIONS bcmath bz2 calendar exif gd gettext imagick intl mysqli opcache pdo_mysql redis soap sockets sodium sysvmsg sysvsem sysvshm xsl zip pcntl # Configure Node.js version RUN curl -sL https://deb.nodesource.com/setup_lts.x | bash diff --git a/images/php/7.3-fpm/Dockerfile b/images/php/7.3-fpm/Dockerfile index 39e6c977..001ddfe7 100644 --- a/images/php/7.3-fpm/Dockerfile +++ b/images/php/7.3-fpm/Dockerfile @@ -22,7 +22,7 @@ ENV UPLOAD_MAX_FILESIZE 64M ENV SENDMAIL_PATH /dev/null ENV PHPRC ${MAGENTO_ROOT}/php.ini -ENV PHP_EXTENSIONS bcmath bz2 calendar exif gd gettext intl mysqli opcache pdo_mysql redis soap sockets sodium sysvmsg sysvsem sysvshm xsl zip pcntl +ENV PHP_EXTENSIONS bcmath bz2 calendar exif gd gettext imagick intl mysqli opcache pdo_mysql redis soap sockets sodium sysvmsg sysvsem sysvshm xsl zip pcntl # Install dependencies RUN apt-get update \ diff --git a/images/php/7.4-cli/Dockerfile b/images/php/7.4-cli/Dockerfile index 949519b7..3ce95b4b 100644 --- a/images/php/7.4-cli/Dockerfile +++ b/images/php/7.4-cli/Dockerfile @@ -29,7 +29,7 @@ ENV MAGENTO_RUN_MODE production ENV SENDMAIL_PATH /dev/null ENV PHPRC ${MAGENTO_ROOT}/php.ini -ENV PHP_EXTENSIONS bcmath bz2 calendar exif gd gettext intl mysqli opcache pdo_mysql redis soap sockets sodium sysvmsg sysvsem sysvshm xsl zip pcntl +ENV PHP_EXTENSIONS bcmath bz2 calendar exif gd gettext imagick intl mysqli opcache pdo_mysql redis soap sockets sodium sysvmsg sysvsem sysvshm xsl zip pcntl # Configure Node.js version RUN curl -sL https://deb.nodesource.com/setup_lts.x | bash diff --git a/images/php/7.4-fpm/Dockerfile b/images/php/7.4-fpm/Dockerfile index 2c085a62..c6e32a3e 100644 --- a/images/php/7.4-fpm/Dockerfile +++ b/images/php/7.4-fpm/Dockerfile @@ -22,7 +22,7 @@ ENV UPLOAD_MAX_FILESIZE 64M ENV SENDMAIL_PATH /dev/null ENV PHPRC ${MAGENTO_ROOT}/php.ini -ENV PHP_EXTENSIONS bcmath bz2 calendar exif gd gettext intl mysqli opcache pdo_mysql redis soap sockets sodium sysvmsg sysvsem sysvshm xsl zip pcntl +ENV PHP_EXTENSIONS bcmath bz2 calendar exif gd gettext imagick intl mysqli opcache pdo_mysql redis soap sockets sodium sysvmsg sysvsem sysvshm xsl zip pcntl # Install dependencies RUN apt-get update \ diff --git a/images/php/8.0-cli/Dockerfile b/images/php/8.0-cli/Dockerfile index 45dd71d1..b2d72600 100644 --- a/images/php/8.0-cli/Dockerfile +++ b/images/php/8.0-cli/Dockerfile @@ -29,7 +29,7 @@ ENV MAGENTO_RUN_MODE production ENV SENDMAIL_PATH /dev/null ENV PHPRC ${MAGENTO_ROOT}/php.ini -ENV PHP_EXTENSIONS bcmath bz2 calendar exif gd gettext intl mysqli opcache pdo_mysql redis soap sockets sodium sysvmsg sysvsem sysvshm xsl zip pcntl +ENV PHP_EXTENSIONS bcmath bz2 calendar exif gd gettext imagick intl mysqli opcache pdo_mysql redis soap sockets sodium sysvmsg sysvsem sysvshm xsl zip pcntl # Configure Node.js version RUN curl -sL https://deb.nodesource.com/setup_lts.x | bash @@ -63,6 +63,8 @@ RUN apt-get update \ libfreetype6-dev \ libgmp-dev \ libgpgme11-dev \ + libmagickwand-dev \ + libmagickcore-dev \ libicu-dev \ libldap2-dev \ libpcre3-dev \ @@ -117,6 +119,7 @@ RUN docker-php-ext-install -j$(nproc) \ RUN pecl install -o -f \ gnupg \ + imagick \ mailparse \ msgpack \ oauth \ diff --git a/images/php/8.0-fpm/Dockerfile b/images/php/8.0-fpm/Dockerfile index c97994d6..365daf78 100644 --- a/images/php/8.0-fpm/Dockerfile +++ b/images/php/8.0-fpm/Dockerfile @@ -22,7 +22,7 @@ ENV UPLOAD_MAX_FILESIZE 64M ENV SENDMAIL_PATH /dev/null ENV PHPRC ${MAGENTO_ROOT}/php.ini -ENV PHP_EXTENSIONS bcmath bz2 calendar exif gd gettext intl mysqli opcache pdo_mysql redis soap sockets sodium sysvmsg sysvsem sysvshm xsl zip pcntl +ENV PHP_EXTENSIONS bcmath bz2 calendar exif gd gettext imagick intl mysqli opcache pdo_mysql redis soap sockets sodium sysvmsg sysvsem sysvshm xsl zip pcntl # Install dependencies RUN apt-get update \ @@ -44,6 +44,8 @@ RUN apt-get update \ libfreetype6-dev \ libgmp-dev \ libgpgme11-dev \ + libmagickwand-dev \ + libmagickcore-dev \ libicu-dev \ libldap2-dev \ libpcre3-dev \ @@ -92,6 +94,7 @@ RUN docker-php-ext-install -j$(nproc) \ RUN pecl install -o -f \ gnupg \ + imagick \ mailparse \ msgpack \ oauth \ diff --git a/images/php/8.1-cli/Dockerfile b/images/php/8.1-cli/Dockerfile index 99010a5f..4e773f55 100644 --- a/images/php/8.1-cli/Dockerfile +++ b/images/php/8.1-cli/Dockerfile @@ -29,7 +29,7 @@ ENV MAGENTO_RUN_MODE production ENV SENDMAIL_PATH /dev/null ENV PHPRC ${MAGENTO_ROOT}/php.ini -ENV PHP_EXTENSIONS bcmath bz2 calendar exif gd gettext intl mysqli opcache pdo_mysql redis soap sockets sodium sysvmsg sysvsem sysvshm xsl zip pcntl +ENV PHP_EXTENSIONS bcmath bz2 calendar exif gd gettext imagick intl mysqli opcache pdo_mysql redis soap sockets sodium sysvmsg sysvsem sysvshm xsl zip pcntl # Configure Node.js version RUN curl -sL https://deb.nodesource.com/setup_lts.x | bash @@ -63,6 +63,8 @@ RUN apt-get update \ libfreetype6-dev \ libgmp-dev \ libgpgme11-dev \ + libmagickwand-dev \ + libmagickcore-dev \ libicu-dev \ libldap2-dev \ libpcre3-dev \ @@ -117,6 +119,7 @@ RUN docker-php-ext-install -j$(nproc) \ RUN pecl install -o -f \ gnupg \ + imagick \ mailparse \ msgpack \ oauth \ diff --git a/images/php/8.1-fpm/Dockerfile b/images/php/8.1-fpm/Dockerfile index f9f544dd..0af9ce86 100644 --- a/images/php/8.1-fpm/Dockerfile +++ b/images/php/8.1-fpm/Dockerfile @@ -22,7 +22,7 @@ ENV UPLOAD_MAX_FILESIZE 64M ENV SENDMAIL_PATH /dev/null ENV PHPRC ${MAGENTO_ROOT}/php.ini -ENV PHP_EXTENSIONS bcmath bz2 calendar exif gd gettext intl mysqli opcache pdo_mysql redis soap sockets sodium sysvmsg sysvsem sysvshm xsl zip pcntl +ENV PHP_EXTENSIONS bcmath bz2 calendar exif gd gettext imagick intl mysqli opcache pdo_mysql redis soap sockets sodium sysvmsg sysvsem sysvshm xsl zip pcntl # Install dependencies RUN apt-get update \ @@ -44,6 +44,8 @@ RUN apt-get update \ libfreetype6-dev \ libgmp-dev \ libgpgme11-dev \ + libmagickwand-dev \ + libmagickcore-dev \ libicu-dev \ libldap2-dev \ libpcre3-dev \ @@ -92,6 +94,7 @@ RUN docker-php-ext-install -j$(nproc) \ RUN pecl install -o -f \ gnupg \ + imagick \ mailparse \ msgpack \ oauth \ diff --git a/images/php/8.2-cli/Dockerfile b/images/php/8.2-cli/Dockerfile index dbafd471..adee1292 100644 --- a/images/php/8.2-cli/Dockerfile +++ b/images/php/8.2-cli/Dockerfile @@ -29,7 +29,7 @@ ENV MAGENTO_RUN_MODE production ENV SENDMAIL_PATH /dev/null ENV PHPRC ${MAGENTO_ROOT}/php.ini -ENV PHP_EXTENSIONS bcmath bz2 calendar exif gd gettext intl mysqli opcache pdo_mysql redis soap sockets sodium sysvmsg sysvsem sysvshm xsl zip pcntl +ENV PHP_EXTENSIONS bcmath bz2 calendar exif gd gettext imagick intl mysqli opcache pdo_mysql redis soap sockets sodium sysvmsg sysvsem sysvshm xsl zip pcntl # Configure Node.js version RUN curl -sL https://deb.nodesource.com/setup_lts.x | bash @@ -63,6 +63,8 @@ RUN apt-get update \ libfreetype6-dev \ libgmp-dev \ libgpgme11-dev \ + libmagickwand-dev \ + libmagickcore-dev \ libicu-dev \ libldap2-dev \ libpcre3-dev \ @@ -118,6 +120,7 @@ RUN docker-php-ext-install -j$(nproc) \ RUN pecl install -o -f \ gnupg \ + imagick \ mailparse \ msgpack \ oauth \ diff --git a/images/php/8.2-fpm/Dockerfile b/images/php/8.2-fpm/Dockerfile index de75c9a5..8dcf2233 100644 --- a/images/php/8.2-fpm/Dockerfile +++ b/images/php/8.2-fpm/Dockerfile @@ -22,7 +22,7 @@ ENV UPLOAD_MAX_FILESIZE 64M ENV SENDMAIL_PATH /dev/null ENV PHPRC ${MAGENTO_ROOT}/php.ini -ENV PHP_EXTENSIONS bcmath bz2 calendar exif gd gettext intl mysqli opcache pdo_mysql redis soap sockets sodium sysvmsg sysvsem sysvshm xsl zip pcntl +ENV PHP_EXTENSIONS bcmath bz2 calendar exif gd gettext imagick intl mysqli opcache pdo_mysql redis soap sockets sodium sysvmsg sysvsem sysvshm xsl zip pcntl # Install dependencies RUN apt-get update \ @@ -44,6 +44,8 @@ RUN apt-get update \ libfreetype6-dev \ libgmp-dev \ libgpgme11-dev \ + libmagickwand-dev \ + libmagickcore-dev \ libicu-dev \ libldap2-dev \ libpcre3-dev \ @@ -93,6 +95,7 @@ RUN docker-php-ext-install -j$(nproc) \ RUN pecl install -o -f \ gnupg \ + imagick \ mailparse \ msgpack \ oauth \ diff --git a/src/Command/Image/GeneratePhp.php b/src/Command/Image/GeneratePhp.php index 238b3052..cbf9ace5 100644 --- a/src/Command/Image/GeneratePhp.php +++ b/src/Command/Image/GeneratePhp.php @@ -75,6 +75,7 @@ class GeneratePhp extends Command 'exif', 'gd', 'gettext', + 'imagick', 'intl', 'mysqli', 'mcrypt', diff --git a/src/Compose/Php/ExtensionResolver.php b/src/Compose/Php/ExtensionResolver.php index 46b95dde..552081df 100644 --- a/src/Compose/Php/ExtensionResolver.php +++ b/src/Compose/Php/ExtensionResolver.php @@ -243,7 +243,7 @@ public static function getConfig(): array '>=7.0 <8.0' => [self::EXTENSION_TYPE => self::EXTENSION_TYPE_PECL], ], 'imagick' => [ - '>=7.0 <8.0' => [ + '>=7.0' => [ self::EXTENSION_TYPE => self::EXTENSION_TYPE_PECL, self::EXTENSION_OS_DEPENDENCIES => ['libmagickwand-dev', 'libmagickcore-dev'], ], From 1d814474a0d2aad1fbe06c23c7226092a57d6876 Mon Sep 17 00:00:00 2001 From: Dossy Shiobara Date: Wed, 10 Jan 2024 12:47:49 -0500 Subject: [PATCH 2/2] add WebP support to GD for PHP 7.4+ and PHP 8.x --- images/php/7.4-cli/Dockerfile | 3 ++- images/php/7.4-fpm/Dockerfile | 3 ++- images/php/8.0-cli/Dockerfile | 3 ++- images/php/8.0-fpm/Dockerfile | 3 ++- images/php/8.1-cli/Dockerfile | 3 ++- images/php/8.1-fpm/Dockerfile | 3 ++- images/php/8.2-cli/Dockerfile | 3 ++- images/php/8.2-fpm/Dockerfile | 3 ++- src/Compose/Php/ExtensionResolver.php | 5 +++-- 9 files changed, 19 insertions(+), 10 deletions(-) diff --git a/images/php/7.4-cli/Dockerfile b/images/php/7.4-cli/Dockerfile index 3ce95b4b..9991f25e 100644 --- a/images/php/7.4-cli/Dockerfile +++ b/images/php/7.4-cli/Dockerfile @@ -61,6 +61,7 @@ RUN apt-get update \ libjpeg62-turbo-dev \ libpng-dev \ libfreetype6-dev \ + libwebp-dev \ libgeoip-dev \ wget \ libgmp-dev \ @@ -89,7 +90,7 @@ RUN sudo chmod +x /usr/local/bin/mhsendmail # Configure the gd library RUN docker-php-ext-configure \ - gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ + gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ --with-webp=/usr/include/ RUN docker-php-ext-configure \ opcache --enable-opcache diff --git a/images/php/7.4-fpm/Dockerfile b/images/php/7.4-fpm/Dockerfile index c6e32a3e..df7d14b4 100644 --- a/images/php/7.4-fpm/Dockerfile +++ b/images/php/7.4-fpm/Dockerfile @@ -42,6 +42,7 @@ RUN apt-get update \ libjpeg62-turbo-dev \ libpng-dev \ libfreetype6-dev \ + libwebp-dev \ libgeoip-dev \ wget \ libgmp-dev \ @@ -64,7 +65,7 @@ RUN sudo chmod +x /usr/local/bin/mhsendmail # Configure the gd library RUN docker-php-ext-configure \ - gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ + gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ --with-webp=/usr/include/ RUN docker-php-ext-configure \ opcache --enable-opcache diff --git a/images/php/8.0-cli/Dockerfile b/images/php/8.0-cli/Dockerfile index b2d72600..47310652 100644 --- a/images/php/8.0-cli/Dockerfile +++ b/images/php/8.0-cli/Dockerfile @@ -61,6 +61,7 @@ RUN apt-get update \ libjpeg62-turbo-dev \ libpng-dev \ libfreetype6-dev \ + libwebp-dev \ libgmp-dev \ libgpgme11-dev \ libmagickwand-dev \ @@ -88,7 +89,7 @@ RUN sudo chmod +x /usr/local/bin/mhsendmail # Configure the gd library RUN docker-php-ext-configure \ - gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ + gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ --with-webp=/usr/include/ RUN docker-php-ext-configure \ opcache --enable-opcache diff --git a/images/php/8.0-fpm/Dockerfile b/images/php/8.0-fpm/Dockerfile index 365daf78..fb2f5a75 100644 --- a/images/php/8.0-fpm/Dockerfile +++ b/images/php/8.0-fpm/Dockerfile @@ -42,6 +42,7 @@ RUN apt-get update \ libjpeg62-turbo-dev \ libpng-dev \ libfreetype6-dev \ + libwebp-dev \ libgmp-dev \ libgpgme11-dev \ libmagickwand-dev \ @@ -63,7 +64,7 @@ RUN sudo chmod +x /usr/local/bin/mhsendmail # Configure the gd library RUN docker-php-ext-configure \ - gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ + gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ --with-webp=/usr/include/ RUN docker-php-ext-configure \ opcache --enable-opcache diff --git a/images/php/8.1-cli/Dockerfile b/images/php/8.1-cli/Dockerfile index 4e773f55..8655fa7a 100644 --- a/images/php/8.1-cli/Dockerfile +++ b/images/php/8.1-cli/Dockerfile @@ -61,6 +61,7 @@ RUN apt-get update \ libjpeg62-turbo-dev \ libpng-dev \ libfreetype6-dev \ + libwebp-dev \ libgmp-dev \ libgpgme11-dev \ libmagickwand-dev \ @@ -88,7 +89,7 @@ RUN sudo chmod +x /usr/local/bin/mhsendmail # Configure the gd library RUN docker-php-ext-configure \ - gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ + gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ --with-webp=/usr/include/ RUN docker-php-ext-configure \ opcache --enable-opcache diff --git a/images/php/8.1-fpm/Dockerfile b/images/php/8.1-fpm/Dockerfile index 0af9ce86..0603a347 100644 --- a/images/php/8.1-fpm/Dockerfile +++ b/images/php/8.1-fpm/Dockerfile @@ -42,6 +42,7 @@ RUN apt-get update \ libjpeg62-turbo-dev \ libpng-dev \ libfreetype6-dev \ + libwebp-dev \ libgmp-dev \ libgpgme11-dev \ libmagickwand-dev \ @@ -63,7 +64,7 @@ RUN sudo chmod +x /usr/local/bin/mhsendmail # Configure the gd library RUN docker-php-ext-configure \ - gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ + gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ --with-webp=/usr/include/ RUN docker-php-ext-configure \ opcache --enable-opcache diff --git a/images/php/8.2-cli/Dockerfile b/images/php/8.2-cli/Dockerfile index adee1292..fd2dd802 100644 --- a/images/php/8.2-cli/Dockerfile +++ b/images/php/8.2-cli/Dockerfile @@ -61,6 +61,7 @@ RUN apt-get update \ libjpeg62-turbo-dev \ libpng-dev \ libfreetype6-dev \ + libwebp-dev \ libgmp-dev \ libgpgme11-dev \ libmagickwand-dev \ @@ -89,7 +90,7 @@ RUN sudo chmod +x /usr/local/bin/mhsendmail # Configure the gd library RUN docker-php-ext-configure \ - gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ + gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ --with-webp=/usr/include/ RUN docker-php-ext-configure \ opcache --enable-opcache diff --git a/images/php/8.2-fpm/Dockerfile b/images/php/8.2-fpm/Dockerfile index 8dcf2233..0a59c7f1 100644 --- a/images/php/8.2-fpm/Dockerfile +++ b/images/php/8.2-fpm/Dockerfile @@ -42,6 +42,7 @@ RUN apt-get update \ libjpeg62-turbo-dev \ libpng-dev \ libfreetype6-dev \ + libwebp-dev \ libgmp-dev \ libgpgme11-dev \ libmagickwand-dev \ @@ -64,7 +65,7 @@ RUN sudo chmod +x /usr/local/bin/mhsendmail # Configure the gd library RUN docker-php-ext-configure \ - gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ + gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ --with-webp=/usr/include/ RUN docker-php-ext-configure \ opcache --enable-opcache diff --git a/src/Compose/Php/ExtensionResolver.php b/src/Compose/Php/ExtensionResolver.php index 552081df..ee37a0ad 100644 --- a/src/Compose/Php/ExtensionResolver.php +++ b/src/Compose/Php/ExtensionResolver.php @@ -210,10 +210,11 @@ public static function getConfig(): array ], '>=7.4' => [ self::EXTENSION_TYPE => self::EXTENSION_TYPE_CORE, - self::EXTENSION_OS_DEPENDENCIES => ['libjpeg62-turbo-dev', 'libpng-dev', 'libfreetype6-dev'], + self::EXTENSION_OS_DEPENDENCIES => ['libjpeg62-turbo-dev', 'libpng-dev', 'libfreetype6-dev', 'libwebp-dev'], self::EXTENSION_CONFIGURE_OPTIONS => [ '--with-freetype=/usr/include/', - '--with-jpeg=/usr/include/' + '--with-jpeg=/usr/include/', + '--with-webp=/usr/include/' ], ], ],