docs: def from_stream(cls, stream):
          """
          Return a |Tiff| instance containing the properties of the TIFF image
          in *stream*.
          """
          parser = _TiffParser.parse(stream)
  
          px_width = parser.px_width
          px_height = parser.px_height
          horz_dpi = parser.horz_dpi
          vert_dpi = parser.vert_dpi
  
          return cls(px_width, px_height, horz_dpi, vert_dpi)