Skip to content

Commit

Permalink
Merge branch 'release/0.4.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
sam159 committed Jul 18, 2024
2 parents c4a5bb1 + 75fc36e commit 83e0240
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.4.2

- add support for `62red` labels (and other red labels)

# 0.4.1

- publish main branch as latest docker image
Expand Down
7 changes: 5 additions & 2 deletions app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from flask import Flask, Response, request
from PIL import Image, ImageFont
from dotenv import load_dotenv
from brother_ql.labels import ALL_LABELS
from brother_ql.labels import ALL_LABELS, Color
from brother_ql import BrotherQLRaster, create_label
from brother_ql.backends import guess_backend, backend_factory
from app.imaging import createBarcode, createLabelImage
Expand Down Expand Up @@ -81,10 +81,13 @@ def test():
def sendToPrinter(image : Image):
bql = BrotherQLRaster(PRINTER_MODEL)

redLabel = label_spec.color == Color.BLACK_RED_WHITE

create_label(
bql,
image,
LABEL_SIZE
LABEL_SIZE,
red=redLabel
)

be = BACKEND_CLASS(PRINTER_PATH)
Expand Down

0 comments on commit 83e0240

Please sign in to comment.