Added fixed tabs

This commit is contained in:
Manuel F Martinez 2013-03-14 01:34:48 -07:00
parent 5295d5c90b
commit 64e5ea5151
1 changed files with 5 additions and 3 deletions

View File

@ -104,6 +104,7 @@ class Escpos:
""" Open image file """ """ Open image file """
im_open = Image.open(path_img) im_open = Image.open(path_img)
im = im_open.convert("RGB") im = im_open.convert("RGB")
# Convert the RGB image in printable image
self._convert_image(im) self._convert_image(im)
@ -114,6 +115,7 @@ class Escpos:
qr_code.make(fit=True) qr_code.make(fit=True)
qr_img = qr_code.make_image() qr_img = qr_code.make_image()
im = qr_img._img.convert("RGB") im = qr_img._img.convert("RGB")
# Convert the RGB image in printable image
self._convert_image(im) self._convert_image(im)