protected function _border($size, $color = null) { extract(parent::_border($size, $color)); $image = '"' . $this->image_temp . '"'; $color = $this->create_color($color, 100); $command = $image . ' -compose copy -bordercolor ' . $color . ' -border ' . $size . 'x' . $size . ' ' . $image; $this->exec('convert', $command); $this->clear_sizes(); }
protected function _border($size, $color = null) { extract(parent::_border($size, $color)); $this->imagick->borderImage($this->create_color($color, 100), $size, $size); }