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

Method image

Lib/pagebot/contexts/htmlcontext/htmlcontext.py:206–208  ·  view source on GitHub ↗

Make an HTML image tag by calling the builder

(self, path, p=None, alpha=1, pageNumber=None, w=None, h=None)

Source from the content-addressed store, hash-verified

204 return cachedFilePath
205
206 def image(self, path, p=None, alpha=1, pageNumber=None, w=None, h=None):
207 """Make an HTML image tag by calling the builder"""
208 self.b.img(path=path) # TODO: add other attributes here, width=w, height=h)
209
210 def saveImage(self, path):
211 """Ignore for now in this context."""

Callers

nothing calls this directly

Calls 1

imgMethod · 0.80

Tested by

no test coverage detected