update `fullfn` properly

This commit is contained in:
Alex "mcmonkey" Goodwin 2023-03-12 12:36:04 -07:00
parent 48df6d66ea
commit af9158a8c7
1 changed files with 1 additions and 0 deletions

View File

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