mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
update fullfn
properly
This commit is contained in:
parent
48df6d66ea
commit
af9158a8c7
@ -577,6 +577,7 @@ def save_image(image, path, basename, seed=None, prompt=None, extension='png', i
|
||||
max_name_len = os.statvfs(path).f_namemax
|
||||
fullfn_without_extension = fullfn_without_extension[:max_name_len - max(4, len(extension))]
|
||||
params.filename = fullfn_without_extension + extension
|
||||
fullfn = params.filename
|
||||
_atomically_save_image(image, fullfn_without_extension, extension)
|
||||
|
||||
image.already_saved_as = fullfn
|
||||
|
Loading…
Reference in New Issue
Block a user