#105791Bug with image focus area?
Description
Dear TYPO3-Core-coders,
i’m not 100% sure, but the chances are pretty high that it’s a bug.
I setup a focus area in some crop variants ( sys_file_references.php in Configuration/TCA/Overrides ):
```
<?PHP
$GLOBALS[‘TCA’][‘sys_file_reference’][‘columns’][‘crop’][‘config’][‘cropVariants’] = [
‘default’ => [
‘title’ => ‘Desktop & Smartphones’,
‘allowedAspectRatios’ => [
‘NaN’ => [
‘title’ => ‘Frei’,
‘value’ => 0.0
],
‘16:9’ => [
‘title’ => ’16: 9’,
‘value’ => 16 / 9
],
‘4:3’ => [
‘title’ => ’4 : 3’,
‘value’ => 4 / 3
],
‘3:4’ => [
‘title’ => ’3 : 4’,
‘value’ => 3 / 4
],
‘1:1’ => [
‘title’ => ’1 : 1’,
‘value’ => 1 / 1
],
],
‘cropArea’ => [
‘x’ => 0,
‘y’ => 0,
‘width’ => 1,
‘height’ => 1,
],
‘focusArea’ => [
‘x’ => 1 / 3,
‘y’ => 1 / 3,
‘width’ => 1 / 3,
‘height’ => 1 / 3,
]
],
‘HeaderSlider’ => [
‘title’ => ‘Bilder für Header-Slider 222’,
‘allowedAspectRatios’ => [
‘NaN’ => [
‘title’ => ’1600 : 650 | 32 : 13’,
‘value’ => 32 / 13
]
],
‘cropArea’ => [
‘x’ => 0,
‘y’ => 0,
‘width’ => 1,
‘height’ => 1,
],
‘coverAreas’ => [
[
‘x’ => 0,
‘y’ => 0,
‘width’ => 1,
‘height’ => 0.05077,
],
[
‘x’ => 0.209,
‘y’ => 0.754,
‘width’ => 0.582,
‘height’ => 0.246,
]
],
‘focusArea’ => [
‘x’ => 0.375,
‘y’ => 0.375,
‘width’ => 0.125,
‘height’ => 0.125,
]
]
];
```
Then, i cleared cache via the maintenance-module. (several time)
Then, i go the an existing or new standard image element (i first tried it on a custom built conten block and wanted to exclude it comes from the content block extension).
I can see all crop variant, also all aspect ratios.
I can the the focus area, BUT ONLY IN THE PREVIEW-image on the upper right corner.
I cannot see, change or edit the focus area in the normal image-editor-area.
For better understanding i recorded the behavior here: https://screenrec.com/share/OZugdUBSwk
I really do not have a clue where this could come from. I do not know any other setting (feature, general setting, other overrides, …) which only could take effect on specially the focus area. Also, my (own) TypoScript does not use/provide any other cropVariants.
Any idea about it?
Many thanks, Thomas
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.