Commits

Josh VanderLinden committed e3dfc0c

Fixing a problem with positioning

Comments (0)

Files changed (1)

watermarker/utils.py

         XxY: absolute positioning on both the X and Y axes
     """
     
-    max_left = img.size[0] - mark.size[0]
-    max_top = img.size[1] - mark.size[1]
+    max_left = abs(img.size[0] - mark.size[0])
+    max_top = abs(img.size[1] - mark.size[1])
     
     if not position:
         position = 'r'