removed alpha channel from map before sending, to further reduce bandwidth abuse

This commit is contained in:
2018-11-10 21:59:01 +01:00
parent 1234bdfa14
commit 513cc34bdd
+1 -1
View File
@@ -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')