/** * Create and cache the view. * * @return mixed Views used as gallery key images return Horde_Image, * other views return boolean */ public function create() { if (!empty($this->_image)) { // Use Horde_Image since we don't know at this point which // view we have loaded. $img = $this->_image->getHordeImage(); $this->_dimensions = $img->getDimensions(); } return $this->_create(); }
/** * Create and cache the view. * * @return mixed Views used as gallery key images return Horde_Image, * other views return boolean */ public function create() { if (!empty($this->_image)) { // Make sure to load the image. $this->_image->load('full'); $img = $this->_image->getHordeImage(); $this->_dimensions = $img->getDimensions(); } return $this->_create(); }