/** * Get the index of the internal iterator. * * @return integer * @throws Ansel_Exception */ public function key() { if (empty($this->_loaded['full'])) { $this->load(); } try { return $this->_image->key(); } catch (Horde_Image_Exception $e) { throw new Ansel_Exception($e); } }