sirius
sirius copied to clipboard
Dithering & UTF-8 fix
Not going to do a pull request, but you might find this useful:
- Dithering instead of threshold:
In
sirius/coding/image_encoding.py
, finddef threshold(im):
and addim = im.convert('1')
Insirius/coding/templating.py
, find<body>
and change it to<body style="background-color: #ffffff">
- To fix UTF-8 support:
In
sirius/coding/templating.py
, find<html>
and add<head><meta charset="utf-8"></head>
Then findreturn t.render(raw_html=raw_html)
and add.encode('utf-8')
Insirius/web/printer_print.py
, findmessage = flask.request.data
and add.decode('utf-8')
:smile: