aboutsummaryrefslogtreecommitdiffstats
path: root/modules/shared.py
diff options
context:
space:
mode:
authorVladimir Mandic <mandic00@live.com>2023-02-27 22:28:04 +0000
committerGitHub <noreply@github.com>2023-02-27 22:28:04 +0000
commit3c6459154fb115ea7cf1a0c5f3f0761a192dfea3 (patch)
treea7b1769f444001d2fdbb2a32823b1adc1e18b3cb /modules/shared.py
parent0cc0ee1bcb4c24a8c9715f66cede06601bfc00c8 (diff)
downloadstable-diffusion-webui-gfx803-3c6459154fb115ea7cf1a0c5f3f0761a192dfea3.tar.gz
stable-diffusion-webui-gfx803-3c6459154fb115ea7cf1a0c5f3f0761a192dfea3.tar.bz2
stable-diffusion-webui-gfx803-3c6459154fb115ea7cf1a0c5f3f0761a192dfea3.zip
add check for resulting image size
Diffstat (limited to 'modules/shared.py')
-rw-r--r--modules/shared.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/shared.py b/modules/shared.py
index 805f9cc1..ec08b7be 100644
--- a/modules/shared.py
+++ b/modules/shared.py
@@ -330,6 +330,7 @@ options_templates.update(options_section(('saving-images', "Saving images/grids"
"export_for_4chan": OptionInfo(True, "If the saved image file size is above the limit, or its either width or height are above the limit, save a downscaled copy as JPG"),
"img_downscale_threshold": OptionInfo(4.0, "File size limit for the above option, MB", gr.Number),
"target_side_length": OptionInfo(4000, "Width/height limit for the above option, in pixels", gr.Number),
+ "img_max_size_mp": OptionInfo(200, "Maximum image size, in megapixels", gr.Number),
"use_original_name_batch": OptionInfo(True, "Use original name for output filename during batch process in extras tab"),
"use_upscaler_name_as_suffix": OptionInfo(False, "Use upscaler name as filename suffix in the extras tab"),