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 #1

Updated by Michael Stucki over 18 years ago

Hi Martin, I think that was fixed, right?

Actions #2

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.

Actions #3

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

Actions

Also available in: Atom PDF