mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-02-10 23:52:54 +08:00
fix for broken export for 4chan
This commit is contained in:
parent
140f893153
commit
2f18823e69
@ -371,7 +371,7 @@ def save_image(image, path, basename, seed=None, prompt=None, extension='png', i
|
|||||||
|
|
||||||
image.save(fullfn_without_extension + ".jpg", quality=opts.jpeg_quality)
|
image.save(fullfn_without_extension + ".jpg", quality=opts.jpeg_quality)
|
||||||
if opts.enable_pnginfo and info is not None:
|
if opts.enable_pnginfo and info is not None:
|
||||||
piexif.insert(exif_bytes(), fullfn)
|
piexif.insert(exif_bytes(), fullfn_without_extension + ".jpg")
|
||||||
|
|
||||||
if opts.save_txt and info is not None:
|
if opts.save_txt and info is not None:
|
||||||
with open(f"{fullfn_without_extension}.txt", "w", encoding="utf8") as file:
|
with open(f"{fullfn_without_extension}.txt", "w", encoding="utf8") as file:
|
||||||
|
Loading…
Reference in New Issue
Block a user