Project

General

Profile

Actions

Task #78458

closed

ImageViewHelper: maxWidth and maxHeight doesn't work

Added by Björn Heinermann over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2016-07-10
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Sprint Focus:
On Location Sprint

Description

Hello

We use the news extension and set the maxWidth or maxHeight value with typoscript to an own value. The default templates from news plugin use this values and gives them correct to the ImageViewHelper.

<f:image image="{mediaElement}" title="{mediaElement.title}" alt="{mediaElement.alternative}" maxWidth="{settings.detail.media.image.maxWidth}" maxHeight="{settings.detail.media.image.maxHeight}" />

The ImageViewHelper get the both values but do nothing with it. The view helper use the original image width and height.

Best wishes
Björn

Actions

Also available in: Atom PDF