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

Method _px_size

src/pptx/parts/image.py:136–139  ·  view source on GitHub ↗

A (width, height) 2-tuple representing the dimensions of this image in pixels.

(self)

Source from the content-addressed store, hash-verified

134
135 @property
136 def _px_size(self) -> tuple[int, int]:
137 """A (width, height) 2-tuple representing the dimensions of this image in pixels."""
138 image = Image.from_blob(self._blob)
139 return image.size
140
141
142class Image(object):

Callers

nothing calls this directly

Calls 1

from_blobMethod · 0.45

Tested by

no test coverage detected