[TASK] Updates for TYPO3 11

This commit is contained in:
Philipp Dieter
2023-09-26 16:19:53 +02:00
parent e126e674c7
commit a02b1bb939
27 changed files with 258 additions and 287 deletions

View File

@@ -47,7 +47,7 @@ class ApiUtility
$this->objectManager = GeneralUtility::makeInstance(
ObjectManager::class
);
$this->imageService = $this->objectManager->get(
$this->imageService = GeneralUtility::makeInstance(
imageService::class
);
if (1 == 0) {
@@ -220,7 +220,7 @@ class ApiUtility
$this->objectManager = GeneralUtility::makeInstance(
ObjectManager::class
);
$this->imageService = $this->objectManager->get(
$this->imageService = GeneralUtility::makeInstance(
imageService::class
);
$httpHost = GeneralUtility::getIndpEnv('HTTP_HOST');
@@ -235,13 +235,8 @@ class ApiUtility
0
);
$processingInstructionsPreview = array(
//'width' => '1024c',
//'height' => '768c',
//'minWidth' => $minWidth,
//'minHeight' => $minHeight,
'maxWidth' => '1024',
'maxHeight' => '768',
//'crop' => $crop,
);
$processedImagePreview = $this->imageService
->applyProcessingInstructions(