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

Method image

src/pptx/parts/image.py:73–78  ·  view source on GitHub ↗

An |Image| object containing the image in this image part. Note this is a `pptx.image.Image` object, not a PIL Image.

(self)

Source from the content-addressed store, hash-verified

71
72 @property
73 def image(self) -> Image:
74 """An |Image| object containing the image in this image part.
75
76 Note this is a `pptx.image.Image` object, not a PIL Image.
77 """
78 return Image(self._blob, self.desc)
79
80 def scale(self, scaled_cx: int | None, scaled_cy: int | None) -> tuple[int, int]:
81 """Return scaled image dimensions in EMU based on the combination of parameters supplied.

Callers

nothing calls this directly

Calls 1

ImageClass · 0.85

Tested by

no test coverage detected