Project

General

Profile

Actions

Bug #51981

closed

JPEG files don't get processed to JPG, only JPG files do.

Added by Guido Jansen about 11 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2013-09-13
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.1
PHP Version:
5.3
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

Description

If I upload a JPG image with the file extension '.jpeg' and crop it via ImageMagick or GD, the image is rendered as PNG or GIF file no matter what value $GLOBALS['TYPO3_CONF_VARS']['GFX']['thumbnails_png'] has.

In file typo3/sysext/core/Classes/Resource/Processing/AbstractGraphicalTask.php
In line 103

it says
if ($this->getSourceFile()->getExtension() === 'jpg') {

should better be
if ($this->getSourceFile()->getExtension() === 'jpg' || $this->getSourceFile()->getExtension() === 'jpeg') {

or perhaps even better via the mime code

Actions

Also available in: Atom PDF