mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2024-06-07 21:20:49 +00:00
fix exif_bytes referenced before assignment
This commit is contained in:
parent
50bb6e1179
commit
8fa3fa76c3
@ -606,7 +606,8 @@ def save_image_with_geninfo(image, geninfo, filename, extension=None, existing_p
|
|||||||
piexif.ExifIFD.UserComment: piexif.helper.UserComment.dump(geninfo or "", encoding="unicode")
|
piexif.ExifIFD.UserComment: piexif.helper.UserComment.dump(geninfo or "", encoding="unicode")
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
else:
|
||||||
|
exif_bytes = None
|
||||||
|
|
||||||
image.save(filename,format=image_format, quality=opts.jpeg_quality, exif=exif_bytes)
|
image.save(filename,format=image_format, quality=opts.jpeg_quality, exif=exif_bytes)
|
||||||
elif extension.lower() == ".gif":
|
elif extension.lower() == ".gif":
|
||||||
|
Loading…
Reference in New Issue
Block a user