This article shows how to generate transparent watermark automatically by using python.
If you want to generate watermark by using python script, you can read on.
1. The environment
2. Install Pillow
You must install Pillow to continue, Pillow is a python library to process images.
If you encounter any ssl issue when installing pillow, you can view this articleHow to solve the pip and ssl version problem when install Pillow on MacOS.
Verify your pillow is ok:
If there is no errors when import PIL , then you can go on.
3. Write the script
The origin image :
The watermarked image:
You can find detail documents about the python pip here: