parameters: (self)
docstring: Open the first image in a TIFF file
docstring_summary: Open the first image in a TIFF file
docstring_tokens: Open the first image in a TIFF file
function: def _open(self):
          """Open the first image in a TIFF file"""
  
          # Header
          ifh = self.fp.read(8)
  
          # image file directory (tag dictionary)
          self.tag_v2 = ImageFileDirectory_v2(ifh)
  
          # legacy tag/ifd entries will be filled in later
          self.tag = self.ifd = None
  
          # setup frame pointers
          self.__first = self.__next = self.tag_v2.next
          self.__frame = -1
          self.__fp = self.fp
          self._frame_pos = []
          self._n_frames = None
  
          if DEBUG:
              print("*** TiffImageFile._open ***")
              print("- __first:", self.__first)
              print("- ifh: ", ifh)
  
          # and load the first frame
          self._seek(0)
function_tokens: def _open ( self ) : # Header ifh = self . fp . read ( 8 ) # image file directory (tag dictionary) self . tag_v2 = ImageFileDirectory_v2 ( ifh ) # legacy tag/ifd entries will be filled in later self . tag = self . ifd = None # setup frame pointers self . __first = self . __next = self . tag_v2 . next self . __frame = - 1 self . __fp = self . fp self . _frame_pos = [ ] self . _n_frames = None if DEBUG : print ( "*** TiffImageFile._open ***" ) print ( "- __first:" , self . __first ) print ( "- ifh: " , ifh ) # and load the first frame self . _seek ( 0 )