Skip to content

Commit

Permalink
Merge pull request #14452 from AUTOMATIC1111/save-info-of-init-image
Browse files Browse the repository at this point in the history
save info of init image
  • Loading branch information
AUTOMATIC1111 committed Dec 30, 2023
2 parents 32862e4 + dc57ec0 commit a79890e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1482,7 +1482,7 @@ def init(self, all_prompts, all_seeds, all_subseeds):
# 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)

Expand Down

0 comments on commit a79890e

Please sign in to comment.