[TYPO3-dev] t3lib_div::imageMagickCommand and options problem
Stefan Geith
typo3dev2008.nospam1 at geithware.de
Tue Aug 4 15:25:13 CEST 2009
Hi Devs,
I tried to do some imageMagickCommands, but got weird results.
Example:
$cmd = t3lib_div::imageMagickCommand
('composite', '-gravity NorthEast overlayFile sourceFile destFile');
but the constructed command is somehow scrambled, because for gm and for
im6, the order of some parameters gets switched within
t3lib_div::imageMagickCommand()
What is the right usage / right order of parameters with options like
'-gravity XX' in t3lib_div::imageMagickCommand() ?
e.g.
$cmd = t3lib_div::imageMagickCommand
('composite', 'overlayFile sourceFile destFile -gravity NorthEast');
or better
$cmd = t3lib_div::imageMagickCommand
('composite', 'overlayFile sourceFile destFile').' -gravity NorthEast;
Or is the behaviour of t3lib_div::imageMagickCommand() buggy, when using
options like '-gravity XX' etc. ?
Any hints / help welcome !
/Stefan Geith
More information about the TYPO3-dev
mailing list