53 $configuration = array_merge(array(
'width' => 64,
'height' => 64), $task->
getConfiguration());
59 $sourceFile->getProperty(
'width') > 0 && $sourceFile->getProperty(
'height') > 0
60 && $configuration[
'width'] > $sourceFile->getProperty(
'width')
61 && $configuration[
'height'] > $sourceFile->getProperty(
'height')
94 $this->processor->getTemporaryImageWithText($targetFilePath,
'Not imagefile!',
'No ext!', $file->
getName());
97 if (
$GLOBALS[
'TYPO3_CONF_VARS'][
'GFX'][
'im']) {
98 $parameters =
'-sample ' . $configuration[
'width'] .
'x' . $configuration[
'height'] .
' ' 99 . $this->processor->wrapFileName($originalFileName) .
'[0] ' . $this->processor->wrapFileName($targetFilePath);
104 if (!file_exists($targetFilePath)) {
106 $this->processor->getTemporaryImageWithText($targetFilePath,
'No thumb',
'generated!', $file->
getName());
112 'filePath' => $targetFilePath,
static imageMagickCommand($command, $parameters, $path='')
generatePreviewFromFile(File $file, array $configuration, $targetFilePath)
static forceIntegerInRange($theInt, $min, $max=2000000000, $defaultValue=0)
getTemporaryFilePath(TaskInterface $task)
getForLocalProcessing($writable=TRUE)
static tempnam($filePrefix, $fileSuffix='')
__construct(LocalImageProcessor $processor)
process(TaskInterface $task)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
static inList($list, $item)
static exec($command, &$output=NULL, &$returnValue=0)