WASasquatch / was-node-suite-comfyui

An extensive node suite for ComfyUI with over 210 new nodes
MIT License
1.22k stars 177 forks source link

WebP metadata doesn't saved #225

Open ttstAABB opened 1 year ago

ttstAABB commented 1 year ago

try: output_file = os.path.abspath(os.path.join(output_path, file)) if extension == 'png': img.save(output_file, pnginfo=metadata, optimize=True) elif extension == 'webp': img.save(output_file, quality=quality) elif extension in ["jpg", "jpeg"]: img.save(output_file, quality=quality, optimize=True) elif extension == 'tiff': img.save(output_file, quality=quality, optimize=True) elif extension == 'webp': img.save(output_file, quality=quality, lossless=lossless_webp, exif=metadata) elif extension == 'bmp': img.save(output_file)

webp appears twice. And above is old code. It should be deleted.

WASasquatch commented 1 year ago

That won't help webp metadata as it requires diff format.

WASasquatch commented 1 year ago

https://github.com/WASasquatch/was-node-suite-comfyui/issues/232#issuecomment-1766933265