Project

General

Profile

Actions

Bug #95168

closed

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

Added by Henry-Karl Berger about 3 years ago. Updated 5 months ago.

Status:
Closed
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 about 3 years ago

  • Category changed from Extbase to Frontend
Actions #2

Updated by Georg Ringer 5 months ago

  • Status changed from New to Closed

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!

Actions

Also available in: Atom PDF