Return an instance of |_TiffParser| containing the properties parsed from the TIFF image in `stream`.
(cls, stream)
| 44 | |
| 45 | @classmethod |
| 46 | def parse(cls, stream): |
| 47 | """Return an instance of |_TiffParser| containing the properties parsed from the |
| 48 | TIFF image in `stream`.""" |
| 49 | stream_rdr = cls._make_stream_reader(stream) |
| 50 | ifd0_offset = stream_rdr.read_long(4) |
| 51 | ifd_entries = _IfdEntries.from_stream(stream_rdr, ifd0_offset) |
| 52 | return cls(ifd_entries) |
| 53 | |
| 54 | @property |
| 55 | def horz_dpi(self): |
no test coverage detected