Project

General

Profile

Actions

Feature #14777

closed

geometry option for class.t3lib_stdgraphic.php->>combineExec

Added by Martin Kutschker over 19 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2005-05-31
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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)


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Feature #20041: Add support for geometry argument when combining images with t3lib_stdGraphicClosedStanislas Rolland2009-02-18

Actions
Actions

Also available in: Atom PDF