zbarlight icon indicating copy to clipboard operation
zbarlight copied to clipboard

Pillow v12 removed `Image.isImageType`

Open The-Compiler opened this issue 1 month ago • 1 comments

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

The-Compiler avatar Nov 23 '25 11:11 The-Compiler

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.

dbaty avatar Nov 24 '25 08:11 dbaty