Compare commits
2 Commits
56cf4394ad
...
61e16625fe
| Author | SHA1 | Date | |
|---|---|---|---|
|
61e16625fe
|
|||
|
7aa3bbb5be
|
@@ -48,7 +48,7 @@ of its dependencies.
|
|||||||
|
|
||||||
Alternatively, you can install the latest version from Github using:
|
Alternatively, you can install the latest version from Github using:
|
||||||
|
|
||||||
pip install --upgrade https://github.com/pklaus/brother_ql/archive/master.zip
|
pip install --upgrade https://git.labolyon.fr/epickiwi/brother_ql/archive/main.zip
|
||||||
|
|
||||||
This package was mainly created for use with Python 3.
|
This package was mainly created for use with Python 3.
|
||||||
The essential functionality, however, will also work with Python 2: the creation of label files.
|
The essential functionality, however, will also work with Python 2: the creation of label files.
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ def convert(qlr, images, label, **kwargs):
|
|||||||
im = im.resize((im.size[0]//2, im.size[1]))
|
im = im.resize((im.size[0]//2, im.size[1]))
|
||||||
if im.size[0] != dots_printable[0]:
|
if im.size[0] != dots_printable[0]:
|
||||||
hsize = int((dots_printable[0] / im.size[0]) * im.size[1])
|
hsize = int((dots_printable[0] / im.size[0]) * im.size[1])
|
||||||
im = im.resize((dots_printable[0], hsize), Image.ANTIALIAS)
|
im = im.resize((dots_printable[0], hsize), Image.Resampling.LANCZOS)
|
||||||
logger.warning('Need to resize the image...')
|
logger.warning('Need to resize the image...')
|
||||||
if im.size[0] < device_pixel_width:
|
if im.size[0] < device_pixel_width:
|
||||||
new_im = Image.new(im.mode, (device_pixel_width, im.size[1]), (255,)*len(im.mode))
|
new_im = Image.new(im.mode, (device_pixel_width, im.size[1]), (255,)*len(im.mode))
|
||||||
|
|||||||
Reference in New Issue
Block a user