[FEATURE] Make the image quality definable per sourceCollection
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Documentation / Changelog / master / Feature-59591-ImageQualityDefinablePerSourceCollection.rst
1 ==============================================================
2 Feature: #59591 - Image quality definable per sourceCollection
3 ==============================================================
4
5 Description
6 ===========
7
8 The image quality of each sourceCollection entry can be configured.
9 Integrators can already render images with the predefined quality set by LocalConfiguration.
10 To decrease the quality of larger images (e.g. double density) in order to lower the file size,
11 integrators can configure the parameter "quality" of the matching sourceCollection now.
12
13 The TypoScript setup can be configured as followed (e.g.):
14
15 .. code-block:: typoscript
16
17 # for small retina images
18 tt_content.image.20.1.sourceCollection.smallRetina.quality = 80
19
20 # for large retina images
21 tt_content.image.20.1.sourceCollection.largeRetina.quality = 65
22
23 If the new parameter is not set, TYPO3 will use to the default quality of LocalConfiguration.
24
25
26 Impact
27 ======
28
29 The rendering of sourceCollection stays as it is. Users can additionally selectively control the quality of jpeg by TypoScript setup.