Actions
Bug #95168
closedImagewidth tt_content attribute is always set to 0.0 when reaching the MediaViewHelper
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
- 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
- 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
Updated by Georg Ringer about 3 years ago
- Category changed from Extbase to Frontend
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