Project

General

Profile

Actions

Bug #95168

open

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

Added by Henry-Karl Berger almost 3 years ago. Updated over 2 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Frontend
Target version:
-
Start date:
2021-09-09
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.4
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

Actions #1

Updated by Georg Ringer over 2 years ago

  • Category changed from Extbase to Frontend
Actions

Also available in: Atom PDF