mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2026-09-23 22:06:58 +00:00
NOTIFICATION_SCREENSHOT_JPG_QUALITY env var, default 75.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user