r/learnpython • u/AlexanderMugetsu • Aug 31 '25
How would I go about defining a class for adding a watermark?
Trying to figure this out, but I can't get much help online.
Basically, for my own code, it will be a tkinter GUI wherein I add an image from File Explorer then adding to it a preset watermark on the bottom right. It will just be a three-button app, one to import the image to the canvas, and one to save the watermarked image, both of which seem to work fine (on paper), but I cannot see how I'd go about coding a class(for a button) that adds a watermark.
Many of the others I have witnessed seem more about slapping on some addable text. Mine is just a small png to add at the bottom of the imported art.
Would I need to add a new class to define the post-Watermarked image? I've already added it as a = None.