Project

General

Profile

Actions

Bug #21983

closed

Thumbnail generation broken for PDF files

Added by Online Now! GmbH over 14 years ago. Updated over 13 years ago.

Status:
Closed
Priority:
Must have
Category:
-
Target version:
-
Start date:
2010-01-18
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Due the patch with report 0012341, the generation of thumbnails for PDF files does not work anymore. The problem is the missing frame parameter in the GraphicsMagick call.

The following line was added in the function imageMagickExec ( t3lib/class.t3lib_stdgraphic.php):

$frame = $frame ? '['.intval($frame).']' : '';

This means the frame parameter will not be added, if the frame number is 0 or empty. This is a problem for PDF files, causing GraphicsMagick to hang and creating an image for each page of the PDF.

In previous version, the frame parameter was alyway added to the GM command, even for normal images. So a fix for this problem, could be changing the line to:

$frame = '['.intval($frame).']';

Problem occurs in 4.3.1 as well.
(issue imported from #M13283)


Files

13283.patch (1.1 KB) 13283.patch Administrator Admin, 2010-01-18 17:16
13283_v2.patch (1.1 KB) 13283_v2.patch Administrator Admin, 2010-01-18 18:12
13283_v6.patch (2.01 KB) 13283_v6.patch Administrator Admin, 2010-02-21 20:09
13283_v7.patch (2.05 KB) 13283_v7.patch Administrator Admin, 2010-02-22 09:42
bug_13283_v9.diff (1.69 KB) bug_13283_v9.diff Administrator Admin, 2010-03-06 00:06

Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #21360: Image Generation broken with PHP safe_mode = On / GraphicsmagickClosedBenni Mack2009-10-26

Actions
Has duplicate TYPO3 Core - Bug #22360: Thumbnails generation on some pdfClosedSteffen Gebert2010-03-31

Actions
Has duplicate TYPO3 Core - Bug #22488: Content element "Filelink" does not create PDF thumbnailsClosedChristian Kuhn2010-04-20

Actions
Actions

Also available in: Atom PDF