Bug #62053
closed
frame option in contentObject IMAGE ignored
Added by Manfred Rutschmann about 10 years ago.
Updated about 6 years ago.
Category:
Content Rendering
Description
$options = array(
'file' => 'uploads/tx_xxx/xxx/file.pdf',
'file.' => array(
'width' => 800,
'height' => 1000,
'format' => 'png',
'frame' => 3,
'params' => ' -density 288 -quality 90',
'noScale' => '',
'stripProfile' => true
),
);
$tag = $cObj->IMAGE($options);
The option file.frame = 3 is completely ignored. The rendered image is always from page 1. This problem occurs since TYPO3 is updated to 6.2.4 from 4.7.
Solution:
/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php
After Line 5279 ($processingConfiguration['additionalParameters'] = isset($fileArray['params.']) ? $this->stdWrap($fileArray['params'], $fileArray['params.']) : $fileArray['params'];)
add:
$processingConfiguration['frame'] = isset($fileArray['frame.']) ? intval($this->stdWrap($fileArray['frame'], $fileArray['frame.'])) : intval($fileArray['frame']);
Frame is not ignored anymore, works as expected.
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33179
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33179
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/33188
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Closed
Also available in: Atom
PDF