[TYPO3-core] Improved t3lib_stdgraphic.php->>combineExec

Martin Kutschker Martin.Kutschker at blackbox.net
Mon Aug 22 17:23:56 CEST 2005


Michael Stucki <michael at typo3.org> writes on 
Thu, 14 Jul 2005 10:20:23 +0200 (METDST):

> This patch was made for 3.7.0!


I've made a new patch.


> Please re-test it on HEAD, especially
> make sure that it doesn't conflict with t3lib_div::imageMagickCommand
> which switches parameters for IM6 and GM.


A problem because the switch only occurs with 6 parameters:

-compose over <input> <overlay> [mask] <output>

When you use geometry you'll get 8 parameters with a mask

-compose over -geometry <geometry> <input> <overlay> [mask] <output>

So t3lib_div::imageMagickCommand has to be patch as well:

-if(count($paramsArr)==6)
+$cntArg = count($paramsArr);
+if($cntArg==6 || $cntArg==8)

Masi


> Martin Kutschker wrote:
> 
> 
> > This is a CVS patch request.
> > 
> > Type: New feature
> > 
> > Description:
> > A new optional parameter that let's you position a smaller image
> > with a IM
> > geometry option.
> > 
> > Branches: HEAD
> > 
> > Bugtracker reference: http://bugs.typo3.org/view.php?id=1139
> > 
> > Files:
> > class.t3lib_stdgraphic.php-t3_380b1-geometry.patch
> > 
> > Masi





More information about the TYPO3-team-core mailing list