MCPcopy Create free account
hub / github.com/ActiveState/code / test

Function test

recipes/Python/362879_Watermark_with_PIL/recipe-362879.py:41–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39 return Image.composite(layer, im, layer)
40
41def test():
42 im = Image.open('test.png')
43 mark = Image.open('overlay.png')
44 watermark(im, mark, 'tile', 0.5).show()
45 watermark(im, mark, 'scale', 1.0).show()
46 watermark(im, mark, (100, 100), 0.5).show()
47
48if __name__ == '__main__':
49 test()

Callers 2

recipe-362879.pyFile · 0.70
prolog_funcFunction · 0.50

Calls 3

watermarkFunction · 0.85
openMethod · 0.45
showMethod · 0.45

Tested by

no test coverage detected