Commit e6c5d955 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Add webp support to GD

parent ad3c6bc5
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -9,6 +9,7 @@ BUILD_DEPS=(
	imagemagick-dev
	jpeg-dev
	libpng-dev
	libwebp-dev
	libzip-dev
)

@@ -35,9 +36,9 @@ apk add "${BUILD_DEPS[@]}"

# Build & install distributed extensions
if php_version -gt 7.4; then
	GD_ARGS=( --with-jpeg=/usr )
	GD_ARGS=( --with-jpeg=/usr --with-webp=/usr )
else
	GD_ARGS=( --with-png-dir=/usr --with-jpeg-dir=/usr )
	GD_ARGS=( --with-png-dir=/usr --with-jpeg-dir=/usr --with-webp-dir=/usr )
fi
docker-php-ext-configure gd "${GD_ARGS[@]}"
docker-php-ext-install -j$(nproc) "${PHP_EXT[@]}"
+1 −0
Original line number Diff line number Diff line
@@ -9,5 +9,6 @@ apk add \
	libgmpxx \
	libjpeg \
	libpng \
	libwebp \
	libzip \
	rsync \