This commit is contained in:
comfyanonymous
2023-03-26 15:16:52 -04:00
parent 223177e192
commit 48efadeccf
2 changed files with 3 additions and 3 deletions

View File

@@ -746,12 +746,12 @@ class SaveImage:
except:
digits = 0
return (digits, prefix)
def compute_vars(input):
input = input.replace("%width%", str(images[0].shape[1]))
input = input.replace("%height%", str(images[0].shape[0]))
return input
filename_prefix = compute_vars(filename_prefix)
subfolder = os.path.dirname(os.path.normpath(filename_prefix))