From 1d9ec62cfb74d19ea21468660d45b7a1bb66fea0 Mon Sep 17 00:00:00 2001 From: comfyanonymous Date: Thu, 9 Feb 2023 09:59:43 -0500 Subject: [PATCH] Use absolute output directory path. --- nodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodes.py b/nodes.py index a9189c6f..23b39829 100644 --- a/nodes.py +++ b/nodes.py @@ -502,7 +502,7 @@ class SaveImage: if extra_pnginfo is not None: for x in extra_pnginfo: metadata.add_text(x, json.dumps(extra_pnginfo[x])) - img.save(f"output/{filename_prefix}_{counter:05}_.png", pnginfo=metadata, optimize=True) + img.save(os.path.join(self.output_dir, f"{filename_prefix}_{counter:05}_.png"), pnginfo=metadata, optimize=True) counter += 1 class LoadImage: