Open ttstAABB opened 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.
That won't help webp metadata as it requires diff format.
https://github.com/WASasquatch/was-node-suite-comfyui/issues/232#issuecomment-1766933265
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.