From a05043cb8de25f9f1213d561c27fd173277122e0 Mon Sep 17 00:00:00 2001 From: CodeByMrFinchum Date: Mon, 30 Dec 2024 21:08:40 +0100 Subject: [PATCH] Some comments --- utils/image_handler.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/utils/image_handler.py b/utils/image_handler.py index f8433cd..fb53829 100644 --- a/utils/image_handler.py +++ b/utils/image_handler.py @@ -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