Example #1
0
 /**
  * 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;
 }
 /**
  * Don't increase the size of an image, only decrease
  *
  * @param bool $val
  */
 public function constrainOnly($val)
 {
     if ($this->isActive()) {
         $this->_settings['constrain_only'] = $val;
         $this->_imageObject->constrainOnly($val);
     }
     return $this;
 }