[FEATURE] Allow overriding of image manipulation cropVariants
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Documentation / Changelog / master / Feature-79812-AllowOverridingCropVariantsForImageManipulation.rst
1 .. include:: ../../Includes.txt
2
3 ======================================================================
4 Feature: #79812 - Allow overriding cropVariants for Image Manipulation
5 ======================================================================
6
7 See :issue:`79812`
8
9 Description
10 ===========
11
12 With the introduction of :issue:`75880` you now can define multiple cropVariants in TCA. With this feature it is now possible to change or override these cropVariants via TSconfig.
13
14 Setting a FormEngine option through :ts:`TCEFORM.sys_file_reference.crop.config.cropVariants.*` does now work.
15
16
17 .. code-block:: typoscript
18
19 TCEFORM.sys_file_reference.crop.config.cropVariants {
20 default {
21 title = Default desktop
22 selectedRatio = NaN
23 allowedAspectRatios {
24 NaN {
25 title = free
26 value = 0.0
27 }
28 }
29 }
30 specialMobile {
31 title = Our special mobile variant
32 selectedRatio = NaN
33 allowedAspectRatios {
34 4:3 {
35 title = ratio 4/3
36 value = 1.3333333
37 }
38 }
39 }
40 }
41
42
43 Impact
44 ======
45
46 It is not possible to change or override cropVariants via Page and User TSconfig.
47
48 .. index:: Backend, FAL, TSConfig