Return a |_PngParser| instance containing the header properties parsed from the PNG image in `stream`.
(cls, stream)
| 41 | |
| 42 | @classmethod |
| 43 | def parse(cls, stream): |
| 44 | """Return a |_PngParser| instance containing the header properties parsed from |
| 45 | the PNG image in `stream`.""" |
| 46 | chunks = _Chunks.from_stream(stream) |
| 47 | return cls(chunks) |
| 48 | |
| 49 | @property |
| 50 | def px_width(self): |