[23] use jpg for overlays

This commit is contained in:
meisnate12 2022-08-09 01:40:21 -04:00
parent 5987a992bb
commit 50d7fe0bf7
2 changed files with 3 additions and 3 deletions

View file

@ -1 +1 @@
1.17.2-develop22
1.17.2-develop23

View file

@ -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)