diff options
author | AngelBottomless <35677394+aria1th@users.noreply.github.com> | 2022-11-02 13:18:31 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-02 13:18:31 +0000 |
commit | 10b280e9a21d7bbe854b212164b955444610743f (patch) | |
tree | b1807fb11220f2607305ba47172b41c87441007a /modules/images.py | |
parent | 9b5f85ac83f864310fe19c9deab6670bad695b0d (diff) | |
parent | 172c4bc09f0866e7dd114068ebe0f9abfe79ef33 (diff) | |
download | stable-diffusion-webui-gfx803-10b280e9a21d7bbe854b212164b955444610743f.tar.gz stable-diffusion-webui-gfx803-10b280e9a21d7bbe854b212164b955444610743f.tar.bz2 stable-diffusion-webui-gfx803-10b280e9a21d7bbe854b212164b955444610743f.zip |
Merge branch 'AUTOMATIC1111:master' into force-push-patch-13
Diffstat (limited to 'modules/images.py')
-rw-r--r-- | modules/images.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/images.py b/modules/images.py index a0728553..ae705cbd 100644 --- a/modules/images.py +++ b/modules/images.py @@ -510,8 +510,9 @@ def save_image(image, path, basename, seed=None, prompt=None, extension='png', i if extension.lower() == '.png':
pnginfo_data = PngImagePlugin.PngInfo()
- for k, v in params.pnginfo.items():
- pnginfo_data.add_text(k, str(v))
+ if opts.enable_pnginfo:
+ for k, v in params.pnginfo.items():
+ pnginfo_data.add_text(k, str(v))
image.save(fullfn, quality=opts.jpeg_quality, pnginfo=pnginfo_data)
|