Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: add WebP and AVIF support #178

Merged
merged 1 commit into from
Mar 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion docker/Dockerfile.php.template
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,16 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libmagickcore-6.q16-3-extra \
libsmbclient-dev \
libgmp-dev \
libwebp-dev \
libavif-dev \
&& rm -rf /var/lib/apt/lists/*

RUN debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
docker-php-ext-configure gd --with-freetype --with-jpeg; \
docker-php-ext-configure gd \
--with-freetype \
--with-jpeg \
--with-webp \
--with-avif; \
docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; \
docker-php-ext-install \
exif \
Expand Down
3 changes: 2 additions & 1 deletion docker/Dockerfile.php71
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libmagickcore-6.q16-3-extra \
libsmbclient-dev \
libgmp-dev \
libwebp-dev \
&& rm -rf /var/lib/apt/lists/*

RUN debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
docker-php-ext-configure gd --with-freetype --with-jpeg; \
docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp; \
docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; \
docker-php-ext-install \
exif \
Expand Down
3 changes: 2 additions & 1 deletion docker/Dockerfile.php72
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libmagickcore-6.q16-3-extra \
libsmbclient-dev \
libgmp-dev \
libwebp-dev \
&& rm -rf /var/lib/apt/lists/*

RUN debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
docker-php-ext-configure gd --with-freetype --with-jpeg; \
docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp; \
docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; \
docker-php-ext-install \
exif \
Expand Down
3 changes: 2 additions & 1 deletion docker/Dockerfile.php73
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libmagickcore-6.q16-3-extra \
libsmbclient-dev \
libgmp-dev \
libwebp-dev \
&& rm -rf /var/lib/apt/lists/*

RUN debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
docker-php-ext-configure gd --with-freetype --with-jpeg; \
docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp; \
docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; \
docker-php-ext-install \
exif \
Expand Down
3 changes: 2 additions & 1 deletion docker/Dockerfile.php74
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libmagickcore-6.q16-3-extra \
libsmbclient-dev \
libgmp-dev \
libwebp-dev \
&& rm -rf /var/lib/apt/lists/*

RUN debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
docker-php-ext-configure gd --with-freetype --with-jpeg; \
docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp; \
docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; \
docker-php-ext-install \
exif \
Expand Down
3 changes: 2 additions & 1 deletion docker/Dockerfile.php80
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libmagickcore-6.q16-3-extra \
libsmbclient-dev \
libgmp-dev \
libwebp-dev \
&& rm -rf /var/lib/apt/lists/*

RUN debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
docker-php-ext-configure gd --with-freetype --with-jpeg; \
docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp; \
docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; \
docker-php-ext-install \
exif \
Expand Down
8 changes: 7 additions & 1 deletion docker/Dockerfile.php81
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,16 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
libmagickcore-6.q16-3-extra \
libsmbclient-dev \
libgmp-dev \
libwebp-dev \
libavif-dev \
&& rm -rf /var/lib/apt/lists/*

RUN debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
docker-php-ext-configure gd --with-freetype --with-jpeg; \
docker-php-ext-configure gd \
--with-freetype \
--with-jpeg \
--with-webp \
--with-avif; \
docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; \
docker-php-ext-install \
exif \
Expand Down