Skip to content

Commit a168d7d

Browse files
Add hint about libjpeg, libwebp, libavif, ... (#818)
* Add hint about libjpeg, libwebp, libavif, ... * Add alpine hint * Update vips * Update bundles/media/imagine-adapter.rst Co-authored-by: Prokyonn <[email protected]> --------- Co-authored-by: Prokyonn <[email protected]>
1 parent c0fdc08 commit a168d7d

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

bundles/media/imagine-adapter.rst

+10-4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ Available adapters are:
1010
* `imagick_extension`_
1111
* `vips_extension`_
1212

13+
.. note::
14+
15+
You may need to install additional libraries on your operating system to support various image MIME types,
16+
such as ``libjpeg-dev, ``libpng-dev``, ``libwebp-dev``, ``libavif-dev``.
17+
18+
Note that some Linux distributions, like Alpine, do not include these libraries in their base images by default.
19+
1320
GD
1421
--
1522

@@ -18,6 +25,7 @@ The simplest adapter is GD and it has no external dependencies besides the PHP e
1825
**Docker:**
1926

2027
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.
28+
2129
..code-block:: bash
2230

2331
RUN apt-get update && apt-get install -y \
@@ -28,7 +36,6 @@ To use the GD extension, you need to install it with docker-php-ext-install. How
2836
&& docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp \
2937
&& docker-php-ext-install -j$(nproc) gd \
3038

31-
3239
Imagick
3340
-------
3441

@@ -47,8 +54,8 @@ To install it use following commands:
4754

4855
.. code-block:: bash
4956
50-
apt-get install libmagickwand-dev inkscape
51-
pecl install imagick
57+
apt-get install libmagickwand-dev
58+
apt-get install php8.3-imagick
5259
5360
VIPS
5461
----
@@ -71,7 +78,6 @@ To install it use following commands:
7178
.. code-block:: bash
7279
7380
apt-get install libvips-dev
74-
pecl install vips
7581
composer require rokka/imagine-vips
7682
7783
.. _gd: http://php.net/manual/en/book.image.php

0 commit comments

Comments
 (0)