Feature #14777
closedgeometry option for class.t3lib_stdgraphic.php->>combineExec
0%
Description
Sometimes it's nice to put a smaller image on top of another. This version let's place the smaller image via IM geometry:
function combineExec($input,$overlay,$mask,$output,$geometry='') {
if (!$this->NO_IMAGE_MAGICK) {
if ($geometry) {
$geometry = '-geometry '.$geometry;
}
$cmd = $this->imageMagickPath.$this->combineScript.' compose over '.$geometry.' -quality '.intval($gfxConf['im_jpg_quality']).' '.$this>wrapFileName($input).' '.$this->wrapFileName($overlay).' '.$this->wrapFileName($mask).' '.$this->wrapFileName($output);
$this->IM_commands[] = Array ($output,$cmd);
$ret = exec($cmd);
t3lib_div::fixPermissions($this->wrapFileName($output)); // Change the permissions of the file
return $ret;
}
}
(issue imported from #M1139)
Updated by Michael Stucki over 18 years ago
Hi Martin, I think that was fixed, right?
Updated by Martin Kutschker over 18 years ago
Don't think so. I think I gave up after seing how much fuss it is to create a proper command line if the code just counts the number of arguments instead of parsing what the arguments were.
I just needed it once and thought it could be handy for somebody else too.
Updated by Oliver Hader about 13 years ago
- Status changed from New to Closed
- Target version deleted (
0) - TYPO3 Version changed from 3.8.0 to 3.8
Duplicated issues