/** * @param string $fileName Full path to the file to be processed * @param string $targetFileName Target file name if not converted, no path included * @param string $targetDirectory * @param File $file * @return string */ protected function processFile($fileName, &$targetFileName, $targetDirectory, File $file = null) { $newFileName = static::$imageResizer->processFile($fileName, $targetFileName, $targetDirectory, $file, $GLOBALS['BE_USER'], array($this, 'notify')); static::$metadata = static::$imageResizer->getLastMetadata(); return $newFileName; }