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
|
max_name_len = os.statvfs(path).f_namemax
|
||||||
fullfn_without_extension = fullfn_without_extension[:max_name_len - max(4, len(extension))]
|
fullfn_without_extension = fullfn_without_extension[:max_name_len - max(4, len(extension))]
|
||||||
params.filename = fullfn_without_extension + extension
|
params.filename = fullfn_without_extension + extension
|
||||||
|
fullfn = params.filename
|
||||||
_atomically_save_image(image, fullfn_without_extension, extension)
|
_atomically_save_image(image, fullfn_without_extension, extension)
|
||||||
|
|
||||||
image.already_saved_as = fullfn
|
image.already_saved_as = fullfn
|
||||||
|
Loading…
Reference in New Issue
Block a user