diff options
author | JJ <jjisnow@gmail.com> | 2022-09-13 21:05:40 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2022-09-14 05:49:00 +0000 |
commit | 859fff370025c09289cbd074b6ba8c6492dd7404 (patch) | |
tree | 68897753f7a60506ae767d2d8bc3bd3d47763490 /modules/images.py | |
parent | f07d789b79309994b65203eb5f82b3040c33bf15 (diff) | |
download | stable-diffusion-webui-gfx803-859fff370025c09289cbd074b6ba8c6492dd7404.tar.gz stable-diffusion-webui-gfx803-859fff370025c09289cbd074b6ba8c6492dd7404.tar.bz2 stable-diffusion-webui-gfx803-859fff370025c09289cbd074b6ba8c6492dd7404.zip |
add webp to file formats with exif saved
Diffstat (limited to 'modules/images.py')
-rw-r--r-- | modules/images.py | 2 |
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"),
|