Kaharos94 / ComfyUI-Saveaswebp

Save a picture as Webp file in Comfy + Workflow loading
34 stars 12 forks source link

Unable to save image #4

Open JHNewton opened 1 year ago

JHNewton commented 1 year ago

I keep getting the follow ing error whenever I try and use save_to_webp: !!! Exception during processing !!! Traceback (most recent call last): File "C:\Programs\ComfyUI_windows_portable\ComfyUI\execution.py", line 141, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "C:\Programs\ComfyUI_windows_portable\ComfyUI\execution.py", line 75, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "C:\Programs\ComfyUI_windows_portable\ComfyUI\execution.py", line 68, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) File "C:\Programs\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Saveaswebp\Save_as_webp.py", line 90, in Save_as_webp img.save(os.path.join(full_output_folder, file), method=6 , exif= imgexif, lossless=boolloss , quality=compression) #Save as webp - options to be determined File "C:\Programs\ComfyUI_windows_portable\python_embeded\lib\site-packages\PIL\Image.py", line 2353, in save save_handler(self, fp, filename) File "C:\Programs\ComfyUI_windows_portable\python_embeded\lib\site-packages\PIL\WebPImagePlugin.py", line 330, in _save data = _webp.WebPEncode( TypeError: function takes exactly 11 arguments (10 given)