Issue Bug Closed

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

Guido Jansen 09/13/13, 14:09 updated 10/02/18, 12:10

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

Reviews 3