/** * Add an effect to the effect stack * * @param string $type The effect to add. * @param array $params The effect parameters. * * @throws Ansel_Exception */ public function addEffect($type, $params = array()) { try { $this->_image->addEffect($type, $params); } catch (Horde_Image_Exception $e) { Horde::log($e, 'ERR'); throw new Ansel_Exception($e); } }