NOTIFICATION_SCREENSHOT_JPG_QUALITY env var, default 75.

This commit is contained in:
dgtlmoon
2022-11-20 10:35:16 +01:00
parent 8b26f13c5a
commit e58011068e
+1 -1
View File
@@ -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