From 513cc34bdd6b479890ce4cb5a73eeff556a95e2c Mon Sep 17 00:00:00 2001 From: Marek Baczynski Date: Sat, 10 Nov 2018 21:59:01 +0100 Subject: [PATCH] removed alpha channel from map before sending, to further reduce bandwidth abuse --- parts/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parts/server.py b/parts/server.py index 5b09430..9efaac6 100644 --- a/parts/server.py +++ b/parts/server.py @@ -39,7 +39,7 @@ def requires_auth(f): def serveImage(img): img_io = BytesIO() - img.save(img_io, 'PNG') + img.convert("RGB").save(img_io, 'PNG') img_io.seek(0) return send_file(img_io, mimetype='image/png')