|
|
|
@ -189,8 +189,7 @@ class Overlays:
|
|
|
|
|
elif self.library.reapply_overlays or changed_image or overlay_change:
|
|
|
|
|
try:
|
|
|
|
|
canvas_width, canvas_height = overlay.get_canvas_size(item)
|
|
|
|
|
|
|
|
|
|
new_poster = Image.open(poster.location if poster else has_original)
|
|
|
|
|
with Image.open(poster.location if poster else has_original) as new_poster:
|
|
|
|
|
exif_tags = new_poster.getexif()
|
|
|
|
|
exif_tags[0x04bc] = "overlay"
|
|
|
|
|
new_poster = new_poster.convert("RGB").resize((canvas_width, canvas_height), Image.LANCZOS)
|
|
|
|
@ -359,6 +358,9 @@ class Overlays:
|
|
|
|
|
logger.error("")
|
|
|
|
|
logger.error(f"Overlays Attempted on {item_title}: {', '.join(over_names)}")
|
|
|
|
|
logger.exorcise()
|
|
|
|
|
for _, over in properties.items():
|
|
|
|
|
if over.image:
|
|
|
|
|
over.image.close()
|
|
|
|
|
overlay_run_time = str(datetime.now() - overlay_start).split('.')[0]
|
|
|
|
|
logger.info("")
|
|
|
|
|
logger.separator(f"Finished {self.library.name} Library Overlays\nOverlays Run Time: {overlay_run_time}")
|
|
|
|
|