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

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):
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"),