/** * Don't increase the size of an image, only decrease * * @param bool $val */ public function constrainOnly($val) { if ($this->isActive()) { $this->_imageObject->constrainOnly($val); } return $this; }
/** * Set the image background colour * * @param array $rgb */ public function backgroundColor($rgb = null) { if ($this->isActive()) { $this->_settings['background_color'] = is_array($rgb) ? implode(',', $rgb) : $rgb; $this->_imageObject->backgroundColor($rgb); } return $this; }