pklaus / brother_ql_web

A Python-based web service to print labels on Brother QL label printers. Based on brother_ql: https://github.com/pklaus/brother_ql
GNU General Public License v3.0
254 stars 124 forks source link

Label size "62mm endless (black/red/white)" only with red color but not in black #27

Open greensquirrel opened 4 years ago

greensquirrel commented 4 years ago

Dear brother_ql_web developers,

When using the label size "62mm endless (black/red/white)" the label is previewed in red and it is printed in read color. What is necessary to print in black color?

Kind regards, Martin

dadosch commented 4 years ago

A quick hack to print exclusively black with such printers is to change the line in brother_ql_web.py beginning with context['fill_color'] to the following:

context['fill_color']  = (0, 0, 0)

This is because (as far as I understand it), the rastered image gets printed. Normally, the whole image is filled with red if red is available, otherwise it stays black. With this you say you want to fill it black, regardless of a red tape.

taintedkernel commented 2 years ago

Would it be possible to leverage both black and red on a single label? I understand that this would add complexity but just curious.