This commit is contained in:
philmaas 2025-04-11 11:52:08 -04:00 committed by GitHub
commit 3d50e632df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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