From 859fff370025c09289cbd074b6ba8c6492dd7404 Mon Sep 17 00:00:00 2001 From: JJ Date: Wed, 14 Sep 2022 07:05:40 +1000 Subject: [PATCH] add webp to file formats with exif saved --- modules/images.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/images.py b/modules/images.py index 50b0e099c..702c56097 100644 --- a/modules/images.py +++ b/modules/images.py @@ -325,7 +325,7 @@ def save_image(image, path, basename, seed=None, prompt=None, extension='png', i if not os.path.exists(fullfn): break - if extension.lower() in ("jpg", "jpeg"): + if extension.lower() in ("jpg", "jpeg", "webp"): exif_bytes = piexif.dump({ "Exif": { piexif.ExifIFD.UserComment: info.encode("utf8"),