Added support for opening WhiteIsZero 16-bit integer TIFF images#6642
Merged
radarhere merged 3 commits intopython-pillow:mainfrom Oct 10, 2022
Merged
Conversation
radarhere
reviewed
Oct 5, 2022
Member
|
#3335 didn't add any TIFF-specific tests, so I don't think tests are needed here. Feel free to say no, but would you be able to upload a copy of one such TIFF here, just in case we want to refer back to it in the future? |
Changed mode to I;16
Contributor
Author
yes of course, i'm fine with that. where should i upload it? |
Member
|
Just attach it to a comment here. I understand that GitHub won't let you attach a TIFF, so compress it into a zip first. |
Member
|
Thanks |
radarhere
approved these changes
Oct 5, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

just added a line to support 16 bit integer TIFFs. is kinda unusual, but this this is needed for custom generated TIFFs, e.g. if you're working with holograms or interferograms.
What did i do?
added a line in TiffImagePlugin.py to support 16 bit integer TIFFs
What did i expect to happen?
that Pillow is able to work with 16 bit integer TIFFs
What did actually happen?
Pillow is able to work with 16 bit integer TIFFs
What versions of Pillow and Python am i using?
Python 3.9 and Pillow 9.2.0