diff options
author | missionfloyd <missionfloyd@users.noreply.github.com> | 2023-02-25 03:57:18 +0000 |
---|---|---|
committer | missionfloyd <missionfloyd@users.noreply.github.com> | 2023-02-25 03:57:18 +0000 |
commit | aa108bd02a8282e8213fa6c5967e3c47e49bb43f (patch) | |
tree | b8473fcf748e73008a7550dae105f9e2e3928942 /modules/shared.py | |
parent | 0cc0ee1bcb4c24a8c9715f66cede06601bfc00c8 (diff) | |
download | stable-diffusion-webui-gfx803-aa108bd02a8282e8213fa6c5967e3c47e49bb43f.tar.gz stable-diffusion-webui-gfx803-aa108bd02a8282e8213fa6c5967e3c47e49bb43f.tar.bz2 stable-diffusion-webui-gfx803-aa108bd02a8282e8213fa6c5967e3c47e49bb43f.zip |
Add lossless webp option
Diffstat (limited to 'modules/shared.py')
-rw-r--r-- | modules/shared.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/shared.py b/modules/shared.py index 805f9cc1..51101988 100644 --- a/modules/shared.py +++ b/modules/shared.py @@ -327,6 +327,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),
|