Applying a watermark to an image in Python is a fairly simple process, but there don’t seem to be many good tutorials on how to do it. This is a very simple example that creates an alpha layer, positions some text in the upper left hand corner, and fades it. It then applies the layer to the original image and saves it to disk. Here’s what it looks like:
Hopefully those comments explain things well enough.
You can save out the image after each step and watch the transformations if that is helpful for understanding what’s going on.
NOTE: This uses the Python Imaging Library, which is in the
python-imaging package on Ubuntu. Make sure that’s installed.