[BUGFIX] Gifbuilder: Fix image-mask-functionality
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Resource / Processing / LocalImageProcessor.php
index e10a7bb..99214da 100644 (file)
@@ -65,9 +65,7 @@ class LocalImageProcessor implements ProcessorInterface {
                                $task->getTargetFile()->setUsesOriginalFile();
                        } elseif (file_exists($result['filePath'])) {
                                $task->setExecuted(TRUE);
-                               $graphicalFunctions = $this->getGraphicalFunctionsObject();
-                               $imageDimensions = $graphicalFunctions->getImageDimensions($result['filePath']);
-
+                               $imageDimensions = $this->getGraphicalFunctionsObject()->getImageDimensions($result['filePath']);
                                $task->getTargetFile()->setName($task->getTargetFileName());
                                $task->getTargetFile()->updateProperties(
                                        array('width' => $imageDimensions[0], 'height' => $imageDimensions[1], 'size' => filesize($result['filePath']), 'checksum' => $task->getConfigurationChecksum())