Task #78458
closedImageViewHelper: maxWidth and maxHeight doesn't work
100%
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
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" />
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
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
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
Updated by Frans Saris about 8 years ago
Is there a fileadmin/_processed_ folder and is the webserver allowed to write there?
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