2
0
Эх сурвалжийг харах

Enable WebP support in GD

Kliment Ognianov 3 жил өмнө
parent
commit
7374994782

+ 2 - 1
images/php/7.4/Dockerfile

@@ -11,6 +11,7 @@ RUN apt-get update && apt-get install -y \
   libfreetype6-dev \
   libicu-dev \
   libjpeg62-turbo-dev \
+  libwebp-dev \
   libmcrypt-dev \
   libonig-dev \
   libpng-dev \
@@ -24,7 +25,7 @@ RUN apt-get update && apt-get install -y \
   zip \
   procps
 
-RUN docker-php-ext-configure gd --with-freetype --with-jpeg
+RUN docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp
 
 RUN docker-php-ext-install \
   bcmath \

+ 2 - 1
images/php/8.1/Dockerfile

@@ -11,6 +11,7 @@ RUN apt-get update && apt-get install -y \
   libbz2-dev \
   libfreetype6-dev \
   libicu-dev \
+  libwebp-dev \
   libjpeg62-turbo-dev \
   libmcrypt-dev \
   libonig-dev \
@@ -24,7 +25,7 @@ RUN apt-get update && apt-get install -y \
   vim \
   zip
 
-RUN docker-php-ext-configure gd --with-freetype --with-jpeg
+RUN docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp
 
 RUN docker-php-ext-install \
   bcmath \