Skip to content

Commit d644aa2

Browse files
Merge branch '2.5' of github.com:sulu/sulu-docs into 2.6
2 parents e57ca50 + c0fdc08 commit d644aa2

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

bundles/media/imagine-adapter.rst

+14
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,20 @@ GD
1515

1616
The simplest adapter is GD and it has no external dependencies besides the PHP extension.
1717

18+
**Docker:**
19+
20+
To use the GD extension, you need to install it with docker-php-ext-install. However, GD requires Linux libraries to function properly. Depending on the type of file you want to generate (such as JPG, PNG, or WebP), you also need to install the corresponding libraries.
21+
..code-block:: bash
22+
23+
RUN apt-get update && apt-get install -y \
24+
libfreetype6-dev \
25+
libwebp-dev \
26+
libjpeg62-turbo-dev \
27+
libpng-dev \
28+
&& docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp \
29+
&& docker-php-ext-install -j$(nproc) gd \
30+
31+
1832
Imagick
1933
-------
2034

0 commit comments

Comments
 (0)