Skip to content

Commit 0554275

Browse files
committed
feat: add AVIF support to PHP GD extension in Docker images
- Add libavif-dev package to both apache-bookworm and fpm-alpine Dockerfiles - Configure GD extension with AVIF support - Update VS Code spell check dictionary with relevant terms
1 parent 63ce35d commit 0554275

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

.vscode/settings.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"cSpell.words": [
3+
"fastcgi",
4+
"hussainweb"
5+
]
6+
}

php8/apache-bookworm/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ RUN set -eux; \
2222
\
2323
apt-get update; \
2424
apt-get install -y --no-install-recommends \
25+
libavif-dev \
2526
libbz2-dev \
2627
libfreetype6-dev \
2728
libicu-dev \
@@ -35,6 +36,7 @@ RUN set -eux; \
3536
; \
3637
\
3738
docker-php-ext-configure gd \
39+
--with-avif \
3840
--with-freetype \
3941
--with-jpeg=/usr \
4042
--with-webp \

php8/fpm-alpine/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ RUN set -eux; \
1717
bzip2-dev \
1818
coreutils \
1919
freetype-dev \
20+
libavif-dev \
2021
libjpeg-turbo-dev \
2122
libmemcached-dev \
2223
libpng-dev \
@@ -31,6 +32,7 @@ RUN set -eux; \
3132
; \
3233
\
3334
docker-php-ext-configure gd \
35+
--with-avif \
3436
--with-freetype \
3537
--with-jpeg=/usr/include \
3638
--with-webp \

0 commit comments

Comments
 (0)