cmbruns / vimage

Image Viewer
Other
3 stars 1 forks source link

A large tif image silently does not load #4

Closed cmbruns closed 2 years ago

cmbruns commented 2 years ago

1980s/1982/Pels1982.tif

cmbruns commented 2 years ago

That's a 16 bit grayscale image. I might need to patch pillow to make this work.

cmbruns commented 2 years ago

In ImageQt.py

    bits_per_pixel = {"1": 1, "L": 8, "P": 8, "I;16": 16}[mode]
    ...
    elif im.mode == "I;16":
        format = qt_format.Format_Grayscale16
cmbruns commented 2 years ago

https://github.com/python-pillow/Pillow/pull/5856

cmbruns commented 2 years ago

Loads after opengl/numpy refactor