Bug #81964

No crop information given in localized FAL version If translated meta data is provided

Added by Nicolas Stey over 4 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2017-07-25
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.1
Tags:
fal,meta,crop,image, metadata,data,cropping
Complexity:
Is Regression:
Sprint Focus:

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

medie-viewhelper-lost-crop.png (65.5 KB) medie-viewhelper-lost-crop.png Florian Engelke, 2018-02-06 17:42
mediaviewhelper-debug.png (80.4 KB) mediaviewhelper-debug.png Florian Engelke, 2018-02-06 17:42

Related issues

Related to TYPO3 Core - Bug #89180: Remove sys_file_metadata width and height from excludefields ClosedGeorg Ringer2019-09-16

Actions
Related to TYPO3 Core - Bug #90637: Remove sys_file_metadata width and height from excludefields if ext:filemetadata is installedClosed2020-03-04

Actions
#1

Updated by Florian Engelke almost 4 years ago

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
#2

Updated by Florian Engelke almost 4 years ago

  • Category changed from File Abstraction Layer (FAL) to Image Cropping
#3

Updated by Florian Engelke almost 4 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 ?

#4

Updated by Gerrit Code Review over 2 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

#5

Updated by Gerrit Code Review over 2 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

#6

Updated by Anonymous over 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
#7

Updated by Benni Mack over 2 years ago

  • Status changed from Resolved to Closed
#8

Updated by Christian Futterlieb about 2 years ago

  • Related to Bug #89180: Remove sys_file_metadata width and height from excludefields added
#9

Updated by Georg Ringer over 1 year ago

  • Related to Bug #90637: Remove sys_file_metadata width and height from excludefields if ext:filemetadata is installed added

Also available in: Atom PDF