61 $configuration = array_replace(static::$defaultConfiguration, $configuration);
64 return $configuration;
92 if ($sourceFile->getProperty(
'width') > 0 && $sourceFile->getProperty(
'height') > 0
93 && $configuration[
'width'] > $sourceFile->getProperty(
'width')
94 && $configuration[
'height'] > $sourceFile->getProperty(
'height')) {
127 $graphicalFunctions = GeneralUtility::makeInstance(GraphicalFunctions::class);
128 $graphicalFunctions->getTemporaryImageWithText(
135 'filePath' => $targetFilePath,
141 $gifBuilder = GeneralUtility::makeInstance(GifBuilder::class);
142 $info = $gifBuilder->getImageDimensions($originalFileName);
143 $newInfo = $gifBuilder->getImageScale($info, $configuration[
'width'], $configuration[
'height'], []);
145 'width' => $newInfo[0],
146 'height' => $newInfo[1],
151 if (
$GLOBALS[
'TYPO3_CONF_VARS'][
'GFX'][
'processor_enabled']) {
153 'width' => $configuration[
'width'],
154 'height' => $configuration[
'height'],
156 $parameters =
'-sample ' . $arguments[
'width'] .
'x' . $arguments[
'height']
163 if (!file_exists($targetFilePath)) {
165 $graphicalFunctions = GeneralUtility::makeInstance(GraphicalFunctions::class);
166 $graphicalFunctions->getTemporaryImageWithText(
175 'filePath' => $targetFilePath,