MCPcopy Create free account
hub / github.com/scanny/python-pptx / from_blob

Method from_blob

src/pptx/parts/image.py:151–153  ·  view source on GitHub ↗

Return a new |Image| object loaded from the image binary in `blob`.

(cls, blob: bytes, filename: str | None = None)

Source from the content-addressed store, hash-verified

149
150 @classmethod
151 def from_blob(cls, blob: bytes, filename: str | None = None) -> Image:
152 """Return a new |Image| object loaded from the image binary in `blob`."""
153 return cls(blob, filename)
154
155 @classmethod
156 def from_file(cls, image_file: str | IO[bytes]) -> Image:

Callers 3

_dpiMethod · 0.45
_px_sizeMethod · 0.45
from_fileMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected