-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
16-bit TIFF files cannot be converted to array #273
Comments
Perhaps related, I seem to remember that 1 bit images have issues getting turned into bit nd arrays. The workaround I hit at the time was to convert them into 8 bit ndarrays with values 0 or 255. |
Anything for 2.2.0 here @wiredfool ? |
Meh, this can wait for 2.3.0 or Future IMHO |
Fixed by #347. |
radarhere
added a commit
to radarhere/Pillow
that referenced
this issue
Sep 24, 2023
Updated harfbuzz to 4.2.0
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example data file: https://dl.dropboxusercontent.com/u/3720/junk/12bit.tif (a 16-bit TIFF container with pixel values spanning a 12-bit range, which is common in scientific imaging)
Opening the file with Image.open works:
Attempting to convert the Image object to an array just encapsulates it:
This is a 1x1 array containing an Image object. I was expecting to have a 1344x1024 array containing 16-bit integer values.
The text was updated successfully, but these errors were encountered: