Project

General

Profile

Actions

Bug #40254

closed

Empty return value in uri.image view helper

Added by Michael Grundkötter about 12 years ago. Updated about 9 years ago.

Status:
Rejected
Priority:
Could have
Assignee:
-
Category:
Fluid
Target version:
-
Start date:
2012-08-27
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

The render() Method in Tx_Fluid_ViewHelpers_Uri_ImageViewHelper contains these lines:

$imageInfo = $this->contentObject->getImgResource($src, $setup);
...
$imageInfo[3] = t3lib_div::png_to_gif_by_imagemagick($imageInfo[3]);

Problem is, that tslib_cObj::getImgResource() does not return numeric indices in the return array, but string indices ($imageInfo['origFile'] instead of $imageInfo3). Thus, the return value of this view helper is always empty. If I simply change that line to:

$imageInfo[3] = t3lib_div::png_to_gif_by_imagemagick($imageInfo['origFile']);

it works again. (the "fix" should be a little better, of course).


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #71576: Image Processing brokenClosedMorton Jonuschat2015-11-14

Actions
Actions

Also available in: Atom PDF