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

Method px_width

src/docx/image/tiff.py:74–78  ·  view source on GitHub ↗

The number of pixels in each row in the image, |None| if the IFD contains no ``ImageWidth`` tag, the expected case when the TIFF is embeded in an Exif image.

(self)

Source from the content-addressed store, hash-verified

72
73 @property
74 def px_width(self):
75 """The number of pixels in each row in the image, |None| if the IFD contains no
76 ``ImageWidth`` tag, the expected case when the TIFF is embeded in an Exif
77 image."""
78 return self._ifd_entries.get(TIFF_TAG.IMAGE_WIDTH)
79
80 @classmethod
81 def _detect_endian(cls, stream):

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected