mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-01-01 20:35:06 +08:00
Save should use desired sample format fixes #1028
This commit is contained in:
parent
dc1ee79e96
commit
ca5901b5c8
@ -114,7 +114,7 @@ def save_files(js_data, images, index):
|
|||||||
|
|
||||||
filename_base = str(int(time.time() * 1000))
|
filename_base = str(int(time.time() * 1000))
|
||||||
for i, filedata in enumerate(images):
|
for i, filedata in enumerate(images):
|
||||||
filename = filename_base + ("" if len(images) == 1 else "-" + str(i + 1)) + ".png"
|
filename = filename_base + ("" if len(images) == 1 else "-" + str(i + 1)) + f".{opts.samples_format}"
|
||||||
filepath = os.path.join(opts.outdir_save, filename)
|
filepath = os.path.join(opts.outdir_save, filename)
|
||||||
|
|
||||||
if filedata.startswith("data:image/png;base64,"):
|
if filedata.startswith("data:image/png;base64,"):
|
||||||
|
Loading…
Reference in New Issue
Block a user