Bug #51981
closedJPEG files don't get processed to JPG, only JPG files do.
100%
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
Updated by Gerrit Code Review about 11 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23810
Updated by Markus Klein about 11 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 122a3c0fe2a2fec6b271ac3f7cd869bea0edcd85.
Updated by Gerrit Code Review about 11 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_6-1 has been pushed to the review server.
It is available at https://review.typo3.org/23815
Updated by Gerrit Code Review about 11 years ago
Patch set 1 for branch TYPO3_6-0 has been pushed to the review server.
It is available at https://review.typo3.org/23816
Updated by Markus Klein about 11 years ago
- Status changed from Under Review to Resolved
Applied in changeset 22ee6608714caab44e46cc8367f7faa84f00aec2.