Project

General

Profile

Bug #14810 » Install_Tool_maskNegate_2005-10-21.diff

Administrator Admin, 2005-10-21 11:15

View differences:

TYPO3core.gifbuilder/typo3/sysext/install/mod/class.tx_install.php 2005-10-21 14:30:13.319556056 +0200
if (!@is_file($overlay)) die("Error: ".$overlay." was not a file");
if (!@is_file($mask)) die("Error: ".$mask." was not a file");
if ($imageProc->maskNegate) {
$outmask = $imageProc->tempPath.$imageProc->filenamePrefix.t3lib_div::shortMD5($imageProc->alternativeOutputKey."mask").".gif";
$imageProc->imageMagickExec($mask, $outmask, '-negate');
$mask = $outmask;
}
$output = $imageProc->tempPath.$imageProc->filenamePrefix.t3lib_div::shortMD5($imageProc->alternativeOutputKey."combine1").".jpg";
$imageProc->combineExec($input,$overlay,$mask,$output);
$fileInfo = $imageProc->getImageDimensions($output);
......
if (!@is_file($input)) die("Error: ".$input." was not a file");
if (!@is_file($overlay)) die("Error: ".$overlay." was not a file");
if (!@is_file($mask)) die("Error: ".$mask." was not a file");
if ($imageProc->maskNegate) {
$outmask = $imageProc->tempPath.$imageProc->filenamePrefix.t3lib_div::shortMD5($imageProc->alternativeOutputKey."mask2").".gif";
$imageProc->imageMagickExec($mask, $outmask, '-negate');
$mask = $outmask;
}
$output = $imageProc->tempPath.$imageProc->filenamePrefix.t3lib_div::shortMD5($imageProc->alternativeOutputKey."combine2").".jpg";
$imageProc->combineExec($input,$overlay,$mask,$output);
$fileInfo = $imageProc->getImageDimensions($output);
(2-2/2)