Think about all the methods we would need to accomplish this. The first thing that comes to mind is a function that will process the command-line arguments mentioned earlier. Next, we need to write code that can add a watermark image to the main image. Let's call this addWaterMark()
. On similar lines, we will need methods that add text and date stamp to the image. We will call this addText()
and addDateStamp()
respectively. With this information, we will develop code to make this work. In this project, we will encapsulate this functionality in a class, but it is not necessary. We do so to make this tool extensible for future use.
Download the file
WaterMarkMaker.py
. This has the code required in this project. Just keep it for further use. Some of the methods will not be discussed in this section. If you encounter difficulties while developing those methods, you can always go back and refer to this file.Open a new Python source file and declare the following...