Compare commits

...

2 Commits

Author SHA1 Message Date
philmaas
4270d5b0ba
Merge fecde26105 into 70d7242e57 2025-04-07 17:44:12 -03:00
Philipp Maas
fecde26105 Remove trailing underscore after batch counter for save image output filename 2024-10-08 20:09:00 +02:00

View File

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