From e58011068e98737b79a2988be153b194ea5d66dd Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Sun, 20 Nov 2022 10:35:16 +0100 Subject: [PATCH] NOTIFICATION_SCREENSHOT_JPG_QUALITY env var, default 75. --- changedetectionio/model/Watch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changedetectionio/model/Watch.py b/changedetectionio/model/Watch.py index 635c53fa8..62eaf33be 100644 --- a/changedetectionio/model/Watch.py +++ b/changedetectionio/model/Watch.py @@ -263,7 +263,7 @@ class model(dict): # Doesnt exist, so create the JPEG from the PNG from PIL import Image im1 = Image.open(png_fname) - im1.convert('RGB').save(jpg_fname) + im1.convert('RGB').save(jpg_fname, quality=int(os.getenv("NOTIFICATION_SCREENSHOT_JPG_QUALITY", 75))) return jpg_fname