From b395d3f487e2d7b900b7b5af556a40216fc9fa4d Mon Sep 17 00:00:00 2001 From: Will Miao <13051207myq@gmail.com> Date: Mon, 21 Apr 2025 15:42:23 +0800 Subject: [PATCH] fix: Update filename formatting in save_images method to ensure unique filenames for batch images --- py/nodes/save_image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/nodes/save_image.py b/py/nodes/save_image.py index dc53034d..50bdf226 100644 --- a/py/nodes/save_image.py +++ b/py/nodes/save_image.py @@ -335,7 +335,7 @@ class SaveImage: if add_counter_to_filename: # Use counter + i to ensure unique filenames for all images in batch current_counter = counter + i - base_filename += f"_{current_counter:05}" + base_filename += f"_{current_counter:05}_" # Set file extension and prepare saving parameters if file_format == "png":