aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorJJ <jjisnow@gmail.com>2022-09-14 07:05:40 +1000
committerAUTOMATIC1111 <16777216c@gmail.com>2022-09-14 08:49:00 +0300
commit859fff370025c09289cbd074b6ba8c6492dd7404 (patch)
tree68897753f7a60506ae767d2d8bc3bd3d47763490 /modules
parentf07d789b79309994b65203eb5f82b3040c33bf15 (diff)
add webp to file formats with exif saved
Diffstat (limited to 'modules')
-rw-r--r--modules/images.py2
1 files changed, 1 insertions, 1 deletions
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"),