Project

General

Profile

Actions

Bug #81964

closed

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

Added by Nicolas Stey over 6 years ago. Updated almost 5 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 2 (0 open2 closed)

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

Updated by Florian Engelke about 6 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
Actions #2

Updated by Florian Engelke about 6 years ago

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

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

Actions #4

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

Actions #5

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

Actions #6

Updated by Anonymous about 5 years ago

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

Updated by Benni Mack almost 5 years ago

  • Status changed from Resolved to Closed
Actions #8

Updated by Christian Futterlieb over 4 years ago

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

Updated by Georg Ringer about 4 years ago

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

Also available in: Atom PDF