targetFileExtension)) { $this->targetFileExtension = $this->determineTargetFileExtension(); } return $this->targetFileExtension; } /** * Gets the file extension the processed file should * have in the filesystem by either using the configuration * setting, or the extension of the original file. */ protected function determineTargetFileExtension(): string { if (!empty($this->configuration['fileExtension'])) { return $this->configuration['fileExtension']; } // @todo - See note of determineDefaultProcessingFileExtension() - find a better place for this $imageService = GeneralUtility::makeInstance(GraphicalFunctions::class); return $imageService->determineDefaultProcessingFileExtension($this->getSourceFile()->getExtension()); } public function getTargetFileName(): string { return 'csm_' . $this->getSourceFile()->getNameWithoutExtension() . '_' . $this->getConfigurationChecksum() . '.' . $this->getTargetFileExtension(); } }