Exemplo n.º 1
0
 /**
  * Resize the current image.
  *
  * @param integer $width        The new width.
  * @param integer $height       The new height.
  * @param boolean $ratio        Maintain original aspect ratio.
  * @param boolean $keepProfile  Keep the image meta data.
  *
  * @throws Ansel_Exception
  */
 public function resize($width, $height, $ratio = true, $keepProfile = false)
 {
     try {
         $this->_image->resize($width, $height, $ratio, $keepProfile);
     } catch (Horde_Image_Exception $e) {
         throw new Ansel_Exception($e);
     }
 }