Project

General

Profile

Actions

Bug #62053

closed

frame option in contentObject IMAGE ignored

Added by Manfred Rutschmann over 9 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Content Rendering
Target version:
Start date:
2014-10-06
Due date:
% Done:

100%

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

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.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #44571: FE pdf thumbnail generation failsClosedOliver Hader2013-01-16

Actions
Actions #1

Updated by Manfred Rutschmann over 9 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.

Actions #2

Updated by Gerrit Code Review over 9 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

Actions #3

Updated by Gerrit Code Review over 9 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

Actions #4

Updated by Gerrit Code Review over 9 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

Actions #5

Updated by Manfred Rutschmann over 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #6

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF