Bug #81964
closedNo crop information given in localized FAL version If translated meta data is provided
100%
Description
I have an image (Text + Media) with crop information on my german website (default language). The related localized version (english) of the image has also crop information. Everthing is okay in the frontend (cropped image) until I add translated english meta data in the filelist. After adding the meta information, the image looses its crop information. Then is shown with original dimensions.
Files
Updated by Florian Engelke over 6 years ago
- File mediaviewhelper-debug.png mediaviewhelper-debug.png added
- File medie-viewhelper-lost-crop.png medie-viewhelper-lost-crop.png added
I can confirm this bug or have the same problem.
I've english as default an german as translated.
The Image with translated meta data (description in Filelist - not Inline) will not be cropped.
The Image without translated meta data will be cropped.
I'm deleting the metadata (filelist) and add them in the inline-translation it works correctly.
Thumbnails in Backend are correctly.
- TYPO3 8.7.10
- PHP 7
- fluid_styled_content
- tested: sys_language_mode = content_fallback & strict
Updated by Florian Engelke over 6 years ago
- Category changed from File Abstraction Layer (FAL) to Image Cropping
Updated by Florian Engelke over 6 years ago
- Category changed from Image Cropping to File Abstraction Layer (FAL)
It seems that the width
and height
in sys_file_metadata
is wrong.
Both values are 0.
So the function makeAbsoluteBasedOnFile
returns only 0 for x, y, width and height.
Update
Found my mistake.
The Backend-User has no access to the fields sys_file_metadata width & height.
So the translation of the file became the value 0
Perhaps width & height should be 'exclude' => false
?
Updated by Gerrit Code Review over 5 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/59883
Updated by Gerrit Code Review over 5 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/59883
Updated by Anonymous over 5 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 7947696b1c5b3553a8c6679ff1f9399b55bad6af.
Updated by Christian Futterlieb almost 5 years ago
- Related to Bug #89180: Remove sys_file_metadata width and height from excludefields added
Updated by Georg Ringer over 4 years ago
- Related to Bug #90637: Remove sys_file_metadata width and height from excludefields if ext:filemetadata is installed added