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

Tested-by: default avatarTYPO3com <>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <>
Tested-by: Georg Ringer's avatarGeorg Ringer <>
Reviewed-by: default avatarJoerg Boesche <>
Tested-by: default avatarJoerg Boesche <>
Reviewed-by: Wouter Wolters's avatarWouter Wolters <>
Tested-by: Wouter Wolters's avatarWouter Wolters <>
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