diff --git a/io_node.py b/io_node.py index b829c0a..3ab8995 100644 --- a/io_node.py +++ b/io_node.py @@ -14,6 +14,7 @@ from .imgio.converter import PILHandlingHodes from .autonode import node_wrapper, get_node_names_mappings, validate, anytype, PILImage import time import os +import shutil from PIL import Image from PIL import ImageOps from PIL import ImageEnhance @@ -330,7 +331,8 @@ class SaveImageWebpCustomNode: if piexif_loaded: piexif.insert(exif_bytes, tmp_path) final_path = os.path.join(full_output_folder, file) - os.rename(tmp_path, final_path) + shutil.copy2(tmp_path, final_path) + os.remove(tmp_path) results.append({ "filename": os.path.join(full_output_folder, file), diff --git a/pyproject.toml b/pyproject.toml index f7d0e44..68cbcb4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui-logicutils" description = "Logical Utils (compare, string, boolean operations) for ComfyUI" -version = "1.6.1" +version = "1.6.2" license = "MIT" [project.urls]