Skip to content
Snippets Groups Projects
Commit 63a2a917 authored by Joschi Kuphal's avatar Joschi Kuphal Committed by Georg Ringer
Browse files

[BUGFIX] Add missing initialization of GraphicalFunctions

Add missing initialization of the GraphicalFunctions helper
during image processing.

Resolves: #83058
Releases: master, 8.7
Change-Id: Ic5552c573f866faf3dcb0e0bc11012d83c805033
Reviewed-on: https://review.typo3.org/54717


Reviewed-by: default avatarFrank Naegler <frank.naegler@typo3.org>
Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarStefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: default avatarWouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: default avatarAndreas Fernandez <typo3@scripting-base.de>
Tested-by: default avatarFrank Naegler <frank.naegler@typo3.org>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
parent 091543cd
Branches
Tags
No related merge requests found
......@@ -247,6 +247,7 @@ class PreviewProcessing
static $graphicalFunctionsObject = null;
if ($graphicalFunctionsObject === null) {
$graphicalFunctionsObject = GeneralUtility::makeInstance(GraphicalFunctions::class);
$graphicalFunctionsObject->init();
}
return $graphicalFunctionsObject;
}
......
......@@ -162,6 +162,7 @@ class LocalImageProcessor implements ProcessorInterface
if ($graphicalFunctionsObject === null) {
$graphicalFunctionsObject = GeneralUtility::makeInstance(GraphicalFunctions::class);
$graphicalFunctionsObject->init();
}
return $graphicalFunctionsObject;
......
......@@ -103,6 +103,7 @@ class LocalPreviewHelper
) {
// Create a default image
$graphicalFunctions = GeneralUtility::makeInstance(GraphicalFunctions::class);
$graphicalFunctions->init();
$graphicalFunctions->getTemporaryImageWithText(
$targetFilePath,
'Not imagefile!',
......@@ -138,6 +139,7 @@ class LocalPreviewHelper
if (!file_exists($targetFilePath)) {
// Create an error gif
$graphicalFunctions = GeneralUtility::makeInstance(GraphicalFunctions::class);
$graphicalFunctions->init();
$graphicalFunctions->getTemporaryImageWithText(
$targetFilePath,
'No thumb',
......
......@@ -117,6 +117,7 @@ class ImageInfo extends FileInfo implements LoggerAwareInterface
if ($graphicalFunctions === null) {
$graphicalFunctions = GeneralUtility::makeInstance(GraphicalFunctions::class);
$graphicalFunctions->init();
}
return $graphicalFunctions;
......
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