Project

General

Profile

Actions

Task #78458

closed

ImageViewHelper: maxWidth and maxHeight doesn't work

Added by Björn Heinermann about 8 years ago. Updated about 8 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 #1

Updated by Frans Saris about 8 years ago

  • Status changed from New to Needs Feedback

Can not reproduce this. what are the values of {settings.detail.media.image.maxWidth} and {settings.detail.media.image.maxHeight}?

Are you sure the values are available in the specific fluid template? And what happens if you put the valus direct in the template <f:image image="{mediaElement}" maxWidth="50" maxHeight="50" /> or use the width and height attributes? <f:image image="{mediaElement}" width="50m" height="50m" />

Actions #2

Updated by Björn Heinermann about 8 years ago

Hallo Frans

I have tested if the values are available in the specific fluid template. They values are available. I also tried to but the values directly to the viewhelper or use the attribute width and height. But nothing happens. The frontend always show the original values of the image. I have tested with different images and had always the same problem.

I have this problem after updates TYPO3 6.2 to 7.6 and updates news from 3.2.6 to 5.2.0.

I also has the Problem in the cal plugin or if I use the viewhelper in the "normal" page templates.

Best wishes
Björn

Actions #3

Updated by Frans Saris about 8 years ago

Hi Björn,

did you test if image processing still works (Tests in install tool).
There were some changes in the default IM settings if I'm not mistaken.

groet Frans

Actions #4

Updated by Björn Heinermann about 8 years ago

Hi Frans

all test works correct but I always has the problem. I use graphicsmagick instead of IM.

Best wishes
Björn

Actions #5

Updated by Riccardo De Contardi about 8 years ago

  • Category set to Fluid
Actions #6

Updated by Frans Saris about 8 years ago

Is there a fileadmin/_processed_ folder and is the webserver allowed to write there?

Actions #7

Updated by Björn Heinermann about 8 years ago

The Problem is fixed. But it was not a problem of fileadmin/_processed_ folder.

I started the Upgrade wizard for second time. There was one missing db changes. But I don't know which field was changed. Sorry the only one I remember that the varchar value changed from 255 to 1024.

Thanks for helping

Actions #8

Updated by Frans Saris about 8 years ago

  • Status changed from Needs Feedback to Closed

Your welcome

Actions

Also available in: Atom PDF