add webp to file formats with exif saved
This commit is contained in:
parent
f07d789b79
commit
859fff3700
|
@ -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"),
|
||||
|
|
Loading…
Reference in New Issue