diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-03-11 12:46:20 +0000 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-03-11 12:46:20 +0000 |
commit | 6da2027213c3bf132c54489d34c48ec084f8dc11 (patch) | |
tree | 5d852af93039ef6636636aaf3ca205176aa170cd /modules/ui_extra_networks.py | |
parent | 9320139bd8340e8b12c178fe80411c8e25f78d9e (diff) | |
download | stable-diffusion-webui-gfx803-6da2027213c3bf132c54489d34c48ec084f8dc11.tar.gz stable-diffusion-webui-gfx803-6da2027213c3bf132c54489d34c48ec084f8dc11.tar.bz2 stable-diffusion-webui-gfx803-6da2027213c3bf132c54489d34c48ec084f8dc11.zip |
save previews for extra networks in the selected format
Diffstat (limited to 'modules/ui_extra_networks.py')
-rw-r--r-- | modules/ui_extra_networks.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/ui_extra_networks.py b/modules/ui_extra_networks.py index 3b476f3a..85f0af4c 100644 --- a/modules/ui_extra_networks.py +++ b/modules/ui_extra_networks.py @@ -144,6 +144,9 @@ class ExtraNetworksPage: """
preview_extensions = ["png", "jpg", "webp"]
+ if shared.opts.samples_format not in preview_extensions:
+ preview_extensions.append(shared.opts.samples_format)
+
potential_files = sum([[path + "." + ext, path + ".preview." + ext] for ext in preview_extensions], [])
for file in potential_files:
|