Commit dfcaee77 authored by Johannes Schlier's avatar Johannes Schlier Committed by Wouter Wolters
Browse files

[BUGFIX] Enable thumbnail generation for IRRE image files with capitalized file extension

The 'imagefile_ext' list only contains the lowercase versions of all supported extensions.
This patch makes sure that a lowercase version of the file extension is used and it is
recognised as an image file.

Resolves: #81826
Releases: master, 8.7
Change-Id: Ice5881be4c685432987530dcdd50b1f758d883ef
Reviewed-on: https://review.typo3.org/53427

Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarJoerg Boesche <typo3@joergboesche.de>
Tested-by: default avatarJoerg Boesche <typo3@joergboesche.de>
Reviewed-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
parent 02201edd
......@@ -342,7 +342,7 @@ class InlineRecordContainer extends AbstractContainer
$imageSetup = array_merge(['width' => '45', 'height' => '45c'], $imageSetup);
if ($GLOBALS['TYPO3_CONF_VARS']['GFX']['thumbnails']
&& GeneralUtility::inList($GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'], $fileObject->getProperty('extension'))) {
&& GeneralUtility::inList($GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'], $fileObject->getExtension())) {
$processedImage = $fileObject->process(ProcessedFile::CONTEXT_IMAGEPREVIEW, $imageSetup);
// Only use a thumbnail if the processing process was successful by checking if image width is set
if ($processedImage->getProperty('width')) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment