From 006e6413aca6dff63bfd0fdbba91ed3281cbd7ba Mon Sep 17 00:00:00 2001 From: Youen Toupin Date: Tue, 28 Dec 2021 20:29:59 +0100 Subject: [PATCH] fixed bug on windows --- ahb_cmd_render.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ahb_cmd_render.py b/ahb_cmd_render.py index 06a15ff..fe72512 100644 --- a/ahb_cmd_render.py +++ b/ahb_cmd_render.py @@ -200,6 +200,7 @@ class AHB_Render: bg = Image.new('RGB', resolution, (255,255,255)) if prev_stage_id is not None: prev_stage = Image.open(dir + "/stages/" + stage_name + "-bg.png") + prev_stage.load() os.remove(dir + "/stages/" + stage_name + "-bg.png") bg.paste(prev_stage, None, prev_stage.getchannel('A')) fg = Image.open(dir + "/stages/" + stage_name + ".png")