Open pieqq opened 1 year ago
You can simply add:
from pkg_resources import parse_version
if parse_version(Image.__version__)>=parse_version('10.0.0'):
Image.ANTIALIAS=Image.LANCZOS
after the line
from PIL import Image
In the conversion.py file of the brother_ql library.
Using pkg_resources
will only work on Python < 3.12 by default due to dropping setuptools
from the default packages in a virtual environment. The alternative is to require and use the packaging
package or to just replace the usage of the old way and require Python > 3.7 (Python <= 3.7 are EOL anyway).
Hello! I discovered your super handy project while trying to print labels on a Brother QL-800 from Linux. Thanks a lot for the time you spent developing this solution, it's very handy!
I installed the program by following the instructions, but ran into this problem:
This is caused by Pillow 10.0.0 which removed ANTIALIAS.
An easy fix for me was to force the installation of the previous version of Pillow, 9.5.0:
then everything was good.
Two ways to fix this behavior:
Let me know what would be the preferred solution, I can probably help to implement this.
Cheers,