Issue Bug Closed

#95168Imagewidth tt_content attribute is always set to 0.0 when reaching the MediaViewHelper

Henry-Karl Berger 09/09/21, 14:52 updated 07/05/24, 18:57

Description

System: Windows
Browser: Chrome Version 92.0.4515.159

Steps to reproduce:
  • Add a content with type textmedia to the page
  • Add a media file (without dimensions in the fileObject)
  • In Media Adjustments section set width and height
  • Save
  • View Page
Additional comments:
  • width and height are correctly saved on BE
  • you can see those values in the tt_content table as well

Actual result:

  • On FE: the iframe containing the media is generated without the width attribute.
  • On core: in the TYPO3\CMS\Fluid\ViewHelpers\MediaViewHelper class, $this->arguments[‘width’] is set to 0.0 but $this->arguments[‘height’] is correctly set.
  • On core it seems that TYPO3\CMS\Frontend\DataProcessing\GalleryProcessor takes rather the fileObject width in consideration instead of the imagewidth parameter coming from the tt_content entry. As there is no such data in the Media file, the width result comes thus with a zero value

Thanks for the time taken reading this request.

Karl Berger

Reviews 0

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

History 2

  1. Georg Ringer changed category 10/27/21, 07:51

  2. Georg Ringer commented and changed status New Closed 07/05/24, 18:57

    hey,

    thanks for creating the issue – I couldn’t reproduce that in latest setup – if this is still valid for v12/v13, please either create a new issue and reference this one or contact me via slack!