Commit c7b284de authored by Thomas Tsiakalakis's avatar Thomas Tsiakalakis

removed debug output

parent e1641cd0
......@@ -28,7 +28,6 @@ class Server(BaseHTTPRequestHandler):
self.end_headers()
fh = open('/dev/' + FRAMEBUFFER, 'rb')
image = Image.frombytes('RGBA', (buf_width, buf_height), fh.read(), 'raw').convert('RGBA')
image.save('/tmp/test.png', format='PNG')
fh.close()
b,g,r,a = image.split()
new_image = Image.merge("RGBA", (r,g,b,a))
......@@ -129,9 +128,6 @@ def render(payload, is_svg):
else:
print('detected non-SVG')
imageData = payload
f = open('test', 'w+b')
f.write(payload)
f.close()
return Image.open(BytesIO(imageData)).convert('RGBA')
def check_size(image, http):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment