MCPcopy Create free account
hub / github.com/Breakthrough/PySceneDetect / __str__

Method __str__

scenedetect/_thirdparty/simpletable.py:116–127  ·  view source on GitHub ↗

Return the HTML code for the table cell with the image.

(self)

Source from the content-addressed store, hash-verified

114 self.height = height
115
116 def __str__(self):
117 """Return the HTML code for the table cell with the image."""
118 safe_filename = quote(self.image_file)
119 output = '<a href="%s" target="_blank">' % (safe_filename)
120 output += '<img src="%s"' % (safe_filename)
121 if self.height:
122 output += ' height="%s"' % (self.height)
123 if self.width:
124 output += ' width="%s"' % (self.width)
125 output += "></a>"
126
127 return output
128
129
130class SimpleTableRow:

Callers

nothing calls this directly

Calls 1

quoteFunction · 0.85

Tested by

no test coverage detected