Not going to do a pull request, but you might find this useful:
Dithering instead of threshold:
In sirius/coding/image_encoding.py, find def threshold(im): and add im = im.convert('1')
In sirius/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 find return t.render(raw_html=raw_html) and add .encode('utf-8')
In sirius/web/printer_print.py, find message = flask.request.data and add .decode('utf-8')
Not going to do a pull request, but you might find this useful:
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">
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: