[TYPO3-dev] RFC: adding debug info to stdGraphic IM_command array
    Martin Kutschker 
    Martin.Kutschker at n0spam-blackbox.net
       
    Mon Jul  9 14:36:43 CEST 2007
    
    
  
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
    
    
More information about the TYPO3-dev
mailing list