Bug #62053
closedframe option in contentObject IMAGE ignored
100%
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.
Updated by Manfred Rutschmann about 10 years ago
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.
Updated by Gerrit Code Review about 10 years ago
- 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
Updated by Gerrit Code Review about 10 years ago
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
Updated by Gerrit Code Review about 10 years ago
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
Updated by Manfred Rutschmann about 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 96a349c68e420ce1784f1d5064196a306880a04b.