diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-08 11:14:12 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-08 11:14:12 +0000 |
commit | ae74b44c69a40c3b2f2a91f5ee4160e6d8bbd31e (patch) | |
tree | 85748946f3b2440dd917694e009c383875c60f0a /modules/postprocessing.py | |
parent | 9be8903ca92f5e6fc29cb8b14fc837b50de19f2f (diff) | |
parent | 5c6a33b3e11f5aa7b2fc56753c5a724e1351ce81 (diff) | |
download | stable-diffusion-webui-gfx803-ae74b44c69a40c3b2f2a91f5ee4160e6d8bbd31e.tar.gz stable-diffusion-webui-gfx803-ae74b44c69a40c3b2f2a91f5ee4160e6d8bbd31e.tar.bz2 stable-diffusion-webui-gfx803-ae74b44c69a40c3b2f2a91f5ee4160e6d8bbd31e.zip |
Merge pull request #11596 from akx/use-read-info
postprocessing: use read_info_from_image
Diffstat (limited to 'modules/postprocessing.py')
-rw-r--r-- | modules/postprocessing.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/postprocessing.py b/modules/postprocessing.py index 736315e2..38544c38 100644 --- a/modules/postprocessing.py +++ b/modules/postprocessing.py @@ -54,7 +54,9 @@ def run_postprocessing(extras_mode, image, image_folder, input_dir, output_dir, for image, name in zip(image_data, image_names):
shared.state.textinfo = name
- existing_pnginfo = image.info or {}
+ parameters, existing_pnginfo = images.read_info_from_image(image)
+ if parameters:
+ existing_pnginfo["parameters"] = parameters
pp = scripts_postprocessing.PostprocessedImage(image.convert("RGB"))
|