aboutsummaryrefslogtreecommitdiffstats
path: root/modules/shared.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-03-11 11:35:53 +0000
committerGitHub <noreply@github.com>2023-03-11 11:35:53 +0000
commit45905b92a90fd26849c327b2799eb171264f241d (patch)
tree8ed7868b16b1505694bd2c3d805080f6557fa851 /modules/shared.py
parentda3f942ab2171e11adf47cd21182db644b9c400a (diff)
parentaa108bd02a8282e8213fa6c5967e3c47e49bb43f (diff)
downloadstable-diffusion-webui-gfx803-45905b92a90fd26849c327b2799eb171264f241d.tar.gz
stable-diffusion-webui-gfx803-45905b92a90fd26849c327b2799eb171264f241d.tar.bz2
stable-diffusion-webui-gfx803-45905b92a90fd26849c327b2799eb171264f241d.zip
Merge pull request #8100 from missionfloyd/webp-lossless
Add lossless webp option
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 28d952dd..78299484 100644
--- a/modules/shared.py
+++ b/modules/shared.py
@@ -329,6 +329,7 @@ options_templates.update(options_section(('saving-images', "Saving images/grids"
"save_images_before_highres_fix": OptionInfo(False, "Save a copy of image before applying highres fix."),
"save_images_before_color_correction": OptionInfo(False, "Save a copy of image before applying color correction to img2img results"),
"jpeg_quality": OptionInfo(80, "Quality for saved jpeg images", gr.Slider, {"minimum": 1, "maximum": 100, "step": 1}),
+ "webp_lossless": OptionInfo(False, "Use lossless compression for webp images"),
"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),