/** * 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); } }
/** * {@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]); }