Issue Bug Rejected

#83247Translating sys_file_metadata results in width 0 and height 0

Anonymous 12/07/17, 11:09 updated 12/07/17, 13:02

Description

Steps to reproduce:
  • upload image to folder
  • translate metadata of image
  • save
    in the database at sys_file_metadata is a new entry for the translation, but width and height is set to 0

This might not be a problem at first, but if you use a system with different crop variants the image tag of a text + image element recieves width=“0” and height=“0”.

Debugged a little and got the point of getCroppedDimensionalProperty in GalleryProcessor. With default Crop variant set to 1:1 he tries to get a dimensional by multiplying 1*0 -> width = 0 and height = 0.
This only applies to Files with a translated meta data which results in width and height set to 0.

End result: Text + Image displays Image only in default language, if the image’s meta data is translated in filelist.

TYPO3 version 8.7.8
PHP 7.1

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.