You can achieve the βscreenshot-in-noteβ effect by receiving a template image with a curled note (curled frame, paper clip, shadow) and a mask where the website screenshot should be inside the template. As soon as you get a screenshot, you simply rotate it slightly and compose it using the template.
To compile it programmatically, you can use ImageMagick as a chained cpharmston .
Here's an alternative to compiling two images with PIL and python .
source share