|
|
|
@ -317,8 +317,8 @@ class Overlays:
|
|
|
|
|
else:
|
|
|
|
|
overlay_box = current_overlay.get_coordinates((canvas_width, canvas_height), box=current_overlay.image.size, new_cords=cord)
|
|
|
|
|
new_poster.paste(current_overlay.image, overlay_box, current_overlay.image)
|
|
|
|
|
temp = os.path.join(self.library.overlay_folder, f"temp.png")
|
|
|
|
|
new_poster.save(temp, "PNG")
|
|
|
|
|
temp = os.path.join(self.library.overlay_folder, f"temp.jpg")
|
|
|
|
|
new_poster.save(temp)
|
|
|
|
|
self.library.upload_poster(item, temp)
|
|
|
|
|
self.library.edit_tags("label", item, add_tags=["Overlay"], do_print=False)
|
|
|
|
|
self.library.reload(item, force=True)
|
|
|
|
|