[TYPO3-dev] RFC: adding debug info to stdGraphic IM_command array

Steffen Kamper steffen at sk-typo3.de
Mon Jul 9 14:53:19 CEST 2007


"Martin Kutschker" <Martin.Kutschker at n0spam-blackbox.net> schrieb im 
Newsbeitrag news:mailman.1.1183984604.4822.typo3-dev at lists.netfielders.de...
> Hi!
>
> Any problems adding the following function like that?
>
> function imageMagickExec($input,$output,$params) {
>  if (!$this->NO_IMAGE_MAGICK) {
>   $cmd = t3lib_div::imageMagickCommand('convert', $params.
>    ' '.$this->wrapFileName($input).' '.$this->wrapFileName($output));
>
>    // CHANGE IS HERE: added processeing of status and full program output
>   $ret = exec($cmd.' 2>&1',$message,$status);
>   $this->IM_commands[] = array($output,$cmd,$status,$message);
>
>   t3lib_div::fixPermissions($this->wrapFileName($output));
>
>   return $ret;
>  }
> }
>
> Masi

great idea, +1 from me !

vg  Steffen 






More information about the TYPO3-dev mailing list