Skip to content
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

Reset handle when seeking backwards in TIFF #5443

Merged
merged 1 commit into from
May 9, 2021

Conversation

radarhere
Copy link
Member

# reset buffered io handle in case fp
# was passed to libtiff, invalidating the buffer
self.fp.tell()

This code is currently not run when seeking backwards. Moving it so that it is, I find that it fixes #5440

@hugovk hugovk merged commit 23f848e into python-pillow:master May 9, 2021
@radarhere radarhere deleted the fp branch May 9, 2021 21:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to read tiff while moving between pages
2 participants