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

Method from_stream

src/docx/image/gif.py:15–19  ·  view source on GitHub ↗

Return |Gif| instance having header properties parsed from GIF image in `stream`.

(cls, stream)

Source from the content-addressed store, hash-verified

13
14 @classmethod
15 def from_stream(cls, stream):
16 """Return |Gif| instance having header properties parsed from GIF image in
17 `stream`."""
18 px_width, px_height = cls._dimensions_from_stream(stream)
19 return cls(px_width, px_height, 72, 72)
20
21 @property
22 def content_type(self):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected