MCPcopy Index your code
hub / github.com/python-openxml/python-docx / parse

Method parse

src/docx/image/png.py:43–47  ·  view source on GitHub ↗

Return a |_PngParser| instance containing the header properties parsed from the PNG image in `stream`.

(cls, stream)

Source from the content-addressed store, hash-verified

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):

Calls 1

from_streamMethod · 0.45