Some comments

This commit is contained in:
Mr Finchum 2024-12-30 21:08:40 +01:00
parent 52135bae5e
commit a05043cb8d

View file

@ -3,9 +3,6 @@ import piexif
import time
from fractions import Fraction
from debug import my_debugging_tools
d = my_debugging_tools()
class ImageProcessor:
"""Functions using pillow are in here."""
def __init__(self):
@ -43,6 +40,7 @@ class ImageProcessor:
return resized_image
def add_watermark(self, image, text, font_size_percentage):
# Still not happy about this function..
drawer = ImageDraw.Draw(image)
imagewidth, imageheight = image.size
margin = (imageheight / 100 ) * 2 # margin dynamic, 2% of image size