/** * Get the number of pages that a multipage image contains. * * @return integer The number of pages. * @throws Ansel_Exception */ public function getImagePageCount() { if (empty($this->_loaded['full'])) { $this->load(); } try { return $this->_image->getImagePageCount(); } catch (Horde_Image_Exception $e) { throw new Ansel_Exception($e); } }