was-node-suite-comfyui icon indicating copy to clipboard operation
was-node-suite-comfyui copied to clipboard

Can't save WebP

Open albamuth opened this issue 1 year ago • 7 comments

Getting the error:

WAS Node Suite Error: Unable to save file due to the to the following error:
'PngInfo' object has no attribute 'startswith'

WAS node filewrite webp error

Switching to any other format works fine, however. I wasn't getting this issue two days ago. I just updated everything and tried it again just before posting this.

albamuth avatar Oct 10 '23 05:10 albamuth

What is the full error in the console? .startswith isn't even use in the block where that error originates so that is confusing. Nor is metadata ever passed to anything that uses .startswith

WASasquatch avatar Oct 10 '23 20:10 WASasquatch

That was the full error. Here's another example of the error, with a completely different workflow.


0: 640x448 1 face, 20.0ms
Speed: 2.0ms preprocess, 20.0ms inference, 2.0ms postprocess per image at shape (1, 3, 640, 448)
semd to cuda:0
Detailer: segment upscale for ((119.814026, 155.95409)) | crop region (179, 233) x 2.13664467179105 -> (382, 497)
100%|█████████████████████████████████████████████████████████████████████████████████| 30/30 [00:14<00:00,  2.01it/s]
WAS Node Suite Error: Unable to save file due to the to the following error:
'PngInfo' object has no attribute 'startswith'
Prompt executed in 221.61 seconds

WAS node filewrite webp error 2

TG SD1.5 style swapper 0.1.json As you can see, the image is coming out of FaceDetailer.

albamuth avatar Oct 10 '23 21:10 albamuth

I also have this problem, someone said the node is throwing the PngInfo object at the WebP encoder as the Exif parameter

VinsiGit avatar Oct 17 '23 09:10 VinsiGit

https://github.com/WASasquatch/was-node-suite-comfyui/commit/802acadd8a2abc120c7623c2e8fb2afb7b536e6c

If you have https://github.com/Kaharos94/ComfyUI-Saveaswebp you can load from webp workflow now. SaveWebp

WASasquatch avatar Oct 17 '23 18:10 WASasquatch

This is great, but, does this node solve problem the save a image as a .webp with your node because I need the custom path and name?

VinsiGit avatar Oct 17 '23 19:10 VinsiGit

Well that's a webp file I am demonstrating, so yes, it's saving a webp

WAS-NS currently is exclusively backend, so to import the webp it saves you need that custom node.

WASasquatch avatar Oct 17 '23 20:10 WASasquatch

it works thx

VinsiGit avatar Oct 17 '23 21:10 VinsiGit