zbarlight
zbarlight copied to clipboard
Pillow v12 removed `Image.isImageType`
Running the basic example from the readme with Pillow 12 fails with:
Traceback (most recent call last):
File "[...]/bug.py", line 9, in <module>
codes = zbarlight.scan_codes(['qrcode'], image)
File "[...]/site-packages/zbarlight/__init__.py", line 68, in scan_codes
if not Image.isImageType(image):
^^^^^^^^^^^^^^^^^
AttributeError: module 'PIL.Image' has no attribute 'isImageType'
See:
- https://github.com/python-pillow/Pillow/pull/9053
- https://github.com/python-pillow/Pillow/pull/8364
Thanks for the report! :) I am planning to work on zbarlight this week: modernization (oh, dear, we're testing against Py 3.5 to 3.8!) and related bug fixes. I'll include this one.