Remove trailing underscore after batch counter for save image output filename

This commit is contained in:
Philipp Maas 2024-10-08 20:06:15 +02:00
parent 3a0eeee320
commit fecde26105
1 changed files with 1 additions and 1 deletions

View File

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