コード例 #1
0
ファイル: GdDriver.php プロジェクト: rulemaker/jitimage
 /**
  * post process background color if any
  *
  * {@inheritDoc}
  *
  */
 public function process()
 {
     parent::process();
     if (is_int($this->background)) {
         extract($this->getBackgroundCoordinates($this->getGravity()));
         imagefill($this->resource, $x1, $y1, $this->background);
         imagefill($this->resource, $x2, $y2, $this->background);
     }
 }
コード例 #2
0
ファイル: ImDriver.php プロジェクト: rulemaker/jitimage
 /**
  * {@inheritDoc}
  *
  * @throws Thapp\JitImage\Exception\ImageProcessException;
  */
 public function process()
 {
     parent::process();
     $cmd = $this->compile();
     $this->runCmd($cmd, '\\Thapp\\JitImage\\Exception\\ImageProcessException', function ($stderr) {
         $this->clean();
     }, ['#', PHP_EOL]);
 }