MCPcopy Create free account
hub / github.com/PageBot/PageBot / _get_iw

Method _get_iw

Lib/pagebot/elements/imagedata.py:82–88  ·  view source on GitHub ↗

Answers the width of the image file. Initialize from the file if self._iw is None. Answer pt(0) if the image file does not exist or the size could not be determined.

(self)

Source from the content-addressed store, hash-verified

80 h = property(_get_h, _set_h)
81
82 def _get_iw(self):
83 """Answers the width of the image file. Initialize from the file if
84 self._iw is None. Answer pt(0) if the image file does not exist or the
85 size could not be determined."""
86 if self._iw is None:
87 self.initializeImageSize()
88 return self._iw
89 iw = property(_get_iw)
90
91 def _get_ih(self):

Callers

nothing calls this directly

Calls 1

initializeImageSizeMethod · 0.95

Tested by

no test coverage detected