FriedrichFroebel / 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
7 stars 4 forks source link

Implement high quality mode #8

Open FriedrichFroebel opened 11 months ago

FriedrichFroebel commented 11 months ago

At the moment, high quality mode (dpi_600) is not really supported. This only becomes obvious once die cut/fixed size labels are tried, as this will raise a hard error when the pixel count does not match: https://github.com/pklaus/brother_ql/blob/56cf4394ad750346c6b664821ccd7489ec140dae/brother_ql/conversion.py#L102 https://github.com/pklaus/brother_ql/blob/56cf4394ad750346c6b664821ccd7489ec140dae/brother_ql/conversion.py#L125-L126 Similar issues will silently be ignored for the endless labels which are the only ones I regularly use. See https://github.com/pklaus/brother_ql_web/pull/47#issuecomment-1822665608 for some more information as well.

Rendering should account for the high quality mode by using a larger resolution.