From 859fff370025c09289cbd074b6ba8c6492dd7404 Mon Sep 17 00:00:00 2001 From: JJ Date: Wed, 14 Sep 2022 07:05:40 +1000 Subject: add webp to file formats with exif saved --- modules/images.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/images.py') diff --git a/modules/images.py b/modules/images.py index 50b0e099..702c5609 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"), -- cgit v1.2.3