Compare commits

..

2 Commits

Author SHA1 Message Date
epickiwi 61e16625fe Changement de l'URL sur le readme 2025-12-14 20:49:38 +01:00
epickiwi 7aa3bbb5be Fix ANTIALIAS 2025-12-14 20:48:26 +01:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ of its dependencies.
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.
The essential functionality, however, will also work with Python 2: the creation of label files.
+1 -1
View File
@@ -110,7 +110,7 @@ def convert(qlr, images, label, **kwargs):
im = im.resize((im.size[0]//2, im.size[1]))
if im.size[0] != dots_printable[0]:
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...')
if im.size[0] < device_pixel_width:
new_im = Image.new(im.mode, (device_pixel_width, im.size[1]), (255,)*len(im.mode))