From e7e3372ed4c6a58944ab0479566340a525c13cc0 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Thu, 9 Jun 2022 11:59:05 -0400 Subject: [PATCH] [33] fix image coords --- VERSION | 2 +- modules/overlays.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 268b965b..390539e8 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.17.0-develop32 +1.17.0-develop33 diff --git a/modules/overlays.py b/modules/overlays.py index ca804d7b..a44e8f47 100644 --- a/modules/overlays.py +++ b/modules/overlays.py @@ -250,7 +250,7 @@ class Overlays: overlay_image, overlay_box = overlay.get_backdrop((canvas_width, canvas_height), box=overlay.image.size, new_cords=cord) new_poster.paste(overlay_image, (0, 0), overlay_image) else: - overlay_box = (cord[1], cord[3]) + overlay_box = overlay.get_coordinates((canvas_width, canvas_height), box=overlay.image.size, new_cords=cord) new_poster.paste(overlay.image, overlay_box, overlay.image) temp = os.path.join(self.library.overlay_folder, f"temp.png") new_poster.save(temp, "PNG")