From fecde26105e21cae3427fc3292c1e3e14f5a81fc Mon Sep 17 00:00:00 2001 From: Philipp Maas Date: Tue, 8 Oct 2024 20:06:15 +0200 Subject: [PATCH] Remove trailing underscore after batch counter for save image output filename --- nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes.py b/nodes.py index a4065c764..32c2ceebe 100644 --- a/nodes.py +++ b/nodes.py @@ -1511,7 +1511,7 @@ class SaveImage: metadata.add_text(x, json.dumps(extra_pnginfo[x])) filename_with_batch_num = filename.replace("%batch_num%", str(batch_number)) - file = f"{filename_with_batch_num}_{counter:05}_.png" + file = f"{filename_with_batch_num}_{counter:05}.png" img.save(os.path.join(full_output_folder, file), pnginfo=metadata, compress_level=self.compress_level) results.append({ "filename": file,