From 0b8c3add34c3dc606b076145fffe26fe9868be55 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Tue, 29 Nov 2022 14:07:53 +0100 Subject: [PATCH] BrowserSteps - Use correct mimetype for screenshot update --- changedetectionio/blueprint/browser_steps/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changedetectionio/blueprint/browser_steps/__init__.py b/changedetectionio/blueprint/browser_steps/__init__.py index 209d6d23..b223d9a9 100644 --- a/changedetectionio/blueprint/browser_steps/__init__.py +++ b/changedetectionio/blueprint/browser_steps/__init__.py @@ -216,7 +216,7 @@ def construct_blueprint(datastore: ChangeDetectionStore): from flask import send_file tmp_fd, tmp_file = mkstemp(text=True, suffix=".json", prefix="changedetectionio-") - output = json.dumps({'screenshot': "data:image/png;base64,{}".format( + output = json.dumps({'screenshot': "data:image/jpeg;base64,{}".format( base64.b64encode(state[0]).decode('ascii')), 'xpath_data': state[1], 'session_age_start': this_session.age_start,