You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/bridges/easy-admin.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
EasyAdmin Integration
2
2
=====================
3
3
4
-
The ``JoliMediaBundle`` provides seamless integration with EasyAdmin, enabling you to manage media directly within your EasyAdmin interface. This integration includes features such as a media library, media browser, and media preview capabilities.
4
+
The ``JoliMediaBundle`` provides seamless integration with `EasyAdmin<https://symfony.com/bundles/EasyAdminBundle/current/index.html>`_, enabling you to manage media directly within your EasyAdmin interface. This integration includes features such as a media library, media browser, and media preview capabilities.
Copy file name to clipboardExpand all lines: doc/bridges/sonata-admin.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
Sonata Admin Integration
2
2
========================
3
3
4
-
The ``JoliMediaBundle`` provides seamless integration with Sonata Admin, enabling you to manage media directly within your Sonata Admin interface. This integration includes features such as a media library, media browser, and media preview capabilities.
4
+
The ``JoliMediaBundle`` provides seamless integration with `Sonata Admin<https://symfony.com/bundles/SonataAdminBundle/current/index.html>`_, enabling you to manage media directly within your Sonata Admin interface. This integration includes features such as a media library, media browser, and media preview capabilities.
Copy file name to clipboardExpand all lines: doc/getting-started/dependencies-and-tooling.rst
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,10 +24,16 @@ A typical Debian-based system can install the required dependencies using the fo
24
24
gifsicle \
25
25
imagemagick \
26
26
jpegoptim \
27
+
libheif1 \
28
+
libheif-plugins-all \
27
29
libimage-exiftool-perl \
28
30
libmagickcore-dev \
29
31
pngquant
30
32
33
+
.. note::
34
+
35
+
The ``libheif1`` and ``libheif-plugins-all`` packages are required to handle AVIF and HEIF images with ImageMagick. Depending on your system, the versions provided by the package manager might be outdated and not (fully) support these formats. In this case, you will need to compile ImageMagick from source with HEIF support.
36
+
31
37
Some tools are not available in the default repositories, so you will need to install them manually. The following commands will install all such tools:
Copy file name to clipboardExpand all lines: doc/index.rst
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ The JoliMediaBundle provides a set of tools to manage media in Symfony applicati
5
5
6
6
It proposes multiple features:
7
7
8
-
- `EasyAdmin <https://symfony.com/bundles/EasyAdminBundle/current/index.html>`_ and `SonataAdmin <https://symfony.com/bundles/SonataAdminBundle/current/index.html>`_ integrations
8
+
- `EasyAdmin <bridges/easy-admin.rst>`_ and `SonataAdmin <bridges/sonata-admin.rst>`_ integrations
9
9
- abstract media storage
10
10
- processors to transform media (crop / resize / etc.)
11
11
- post processors to optimize the media size
@@ -22,7 +22,7 @@ It proposes multiple features:
22
22
🤓 Goals and approach
23
23
--------------------
24
24
25
-
The JoliMediaBundle aims to provide numerous facilities to manage media in Symfony applications, by using the best tools available, and following best practices. It is built on top of the [Flysystem](https://flysystem.thephpleague.com/) library to provide an abstraction layer for file storage, and multiple media processing libraries to handle media transformations and optimizations.
25
+
The JoliMediaBundle aims to provide numerous facilities to manage media in Symfony applications, by using the best tools available, and following best practices. It is built on top of the `Flysystem<https://flysystem.thephpleague.com/>`_ library to provide an abstraction layer for file storage, and multiple media processing libraries to handle media transformations and optimizations.
Copy file name to clipboardExpand all lines: doc/variations/processors.rst
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ The main processors configuration is defined in the ``processors`` key of the ``
11
11
- ``cwebp``: the processor to convert images to WebP format
12
12
- ``gif2webp``: the processor to convert GIF images to WebP format
13
13
- ``gifsicle``: the processor to convert GIF images into other GIF files
14
-
- ``imagimagineick``: the processor to convert images using the Imagine library
14
+
- ``imagine``: the processor to convert images using the Imagine library
15
15
16
16
.. tip::
17
17
@@ -69,9 +69,9 @@ The ``imagine`` processor does not use a binary, it uses the Imagine library to
69
69
cwebp processor options
70
70
~~~~~~~~~~~~~~~~~~~~~~~
71
71
72
-
The ``gif2webp`` processor is used to convert JPEG, PNG, TIFF or WEBP images to WebP format. It supports two presets: ``near_lossless`` and ``lossy``.
72
+
The ``cwebp`` processor is used to convert JPEG, PNG, TIFF or WEBP images to WebP format. It supports two presets: ``near_lossless`` and ``lossy``.
73
73
74
-
The ``near_lossless`` configuration preset is used for images that you want to convert to WebP with minimal quality loss. Under the hood, the bundle never uses the ``near_lossless`` preset for JPEG or TIFF images or for imahgs that contain more than 20000 colors.
74
+
The ``near_lossless`` configuration preset is used for images that you want to convert to WebP with minimal quality loss. Under the hood, the bundle never uses the ``near_lossless`` preset for JPEG or TIFF images or for images that contain more than 20000 colors.
75
75
76
76
The ``lossy`` configuration preset is the default preset, it offers a good balance between quality and file size for most images.
77
77
@@ -89,7 +89,7 @@ The various configuration keys are mapped to `the official cwebp options <https:
89
89
gif2webp processor options
90
90
~~~~~~~~~~~~~~~~~~~~~~~~~~
91
91
92
-
The ``gif2webp`` processor is used to convert GIF images to WebP format. Its configuration keys are mapped to `the official gif2webp options <https://developers.google.com/speed/webp/docs/gif2webp>`_:
92
+
The ``gif2webp`` processor is used to convert (animated) GIF images to WebP format. Its configuration keys are mapped to `the official gif2webp options <https://developers.google.com/speed/webp/docs/gif2webp>`_:
93
93
94
94
- ``lossy``: ``-lossy``
95
95
- ``metadata``: ``-metadata``
@@ -107,12 +107,16 @@ The ``gifsicle`` processor is used to convert GIF images into other GIF files. I
107
107
imagine processor options
108
108
~~~~~~~~~~~~~~~~~~~~~~~~~
109
109
110
-
The ``imagine`` processor is used to convert GIF, HEIF, JPEG, PNG, TIFF or WEBP images to the GIF, JPEG, PNG or TIFF format using `the Imagine library <https://github.com/php-imagine/Imagine>`_. It supports the following configuration keys:
110
+
The ``imagine`` processor is used to convert AVIF, GIF, HEIF, JPEG, PNG, TIFF or WEBP images to the AVIF, GIF, JPEG, PNG or TIFF format using `the Imagine library <https://github.com/php-imagine/Imagine>`_. It supports the following configuration keys:
111
111
112
112
- ``jpeg_quality``: the quality of the JPEG images, from 0 to 100 (default: 80). It is mapped to Imagine's ``jpeg_quality`` option
113
113
- ``png_quality``: the quality of the PNG images, from 0 to 100 (default: 80). It is mapped to Imagine's ``png_compression_level`` and ``png_compression_filter`` options
114
114
- ``quality``: the quality of the images, from 0 to 100 (default: 80). It is mapped to Imagine's ``quality`` option
115
115
116
+
.. note::
117
+
118
+
The AVIF support is still a bit limited in Imagine. In particular, it does not work with animated AVIF images. As a consequence, converting an animated GIF to AVIF will only keep the first frame of the GIF image.
119
+
116
120
Customizing processor options for a library or a variation
0 commit comments