aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-12-30 14:41:39 +0300
committerGitHub <noreply@github.com>2023-12-30 14:41:39 +0300
commita79890efd6774098a652887c20238f6c108be172 (patch)
tree19d3e9f6184417bc225b41d10868510ccc93f902 /modules
parent32862e437952232c5d471c41ed7d80a2e685ddc7 (diff)
parentdc57ec0296e768ee91290e16ab262404837c566d (diff)
Merge pull request #14452 from AUTOMATIC1111/save-info-of-init-image
save info of init image
Diffstat (limited to 'modules')
-rw-r--r--modules/processing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/processing.py b/modules/processing.py
index ee2ccf46..2f11d5f8 100644
--- a/modules/processing.py
+++ b/modules/processing.py
@@ -1482,7 +1482,7 @@ class StableDiffusionProcessingImg2Img(StableDiffusionProcessing):
# Save init image
if opts.save_init_img:
self.init_img_hash = hashlib.md5(img.tobytes()).hexdigest()
- images.save_image(img, path=opts.outdir_init_images, basename=None, forced_filename=self.init_img_hash, save_to_dirs=False)
+ images.save_image(img, path=opts.outdir_init_images, basename=None, forced_filename=self.init_img_hash, save_to_dirs=False, existing_info=img.info)
image = images.flatten(img, opts.img2img_background_color)