Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix end cutting for PT-E550W and add param to disable half cuts #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions brother_ql/conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ def convert(qlr, images, label, **kwargs):
:Keyword Arguments:
* **cut** (``bool``) --
Enable cutting after printing the labels.
* **half_cut** (``bool``) --
Enable partial cuts between the labels.
* **dither** (``bool``) --
Instead of applying a threshold to the pixel values, approximate grey tones with dithering.
* **compress**
Expand All @@ -48,6 +50,7 @@ def convert(qlr, images, label, **kwargs):
device_pixel_width = qlr.get_pixel_width()

cut = kwargs.get('cut', True)
half_cut = kwargs.get('half_cut', True)
dither = kwargs.get('dither', False)
compress = kwargs.get('compress', False)
red = kwargs.get('red', False)
Expand Down Expand Up @@ -177,6 +180,8 @@ def convert(qlr, images, label, **kwargs):
try:
qlr.dpi_600 = dpi_600
qlr.cut_at_end = cut
qlr.no_chain_printing = cut
qlr.half_cut = half_cut
qlr.two_color_printing = True if red else False
qlr.add_expanded_mode()
except BrotherQLUnsupportedCmd:
Expand Down