add webp to file formats with exif saved

This commit is contained in:
JJ 2022-09-14 07:05:40 +10:00 committed by AUTOMATIC1111
parent f07d789b79
commit 859fff3700
1 changed files with 1 additions and 1 deletions

View File

@ -325,7 +325,7 @@ def save_image(image, path, basename, seed=None, prompt=None, extension='png', i
if not os.path.exists(fullfn): if not os.path.exists(fullfn):
break break
if extension.lower() in ("jpg", "jpeg"): if extension.lower() in ("jpg", "jpeg", "webp"):
exif_bytes = piexif.dump({ exif_bytes = piexif.dump({
"Exif": { "Exif": {
piexif.ExifIFD.UserComment: info.encode("utf8"), piexif.ExifIFD.UserComment: info.encode("utf8"),