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

TiffImagePlugin: __next is not updated properly #2047

Closed
wants to merge 2 commits into from

Conversation

db4
Copy link

@db4 db4 commented Aug 1, 2016

Fixes ValueError: seek of closed file in the attached test case

@db4
Copy link
Author

db4 commented Aug 1, 2016

Looks like this is not enough. I still have ValueError: seek of closed file in a similar case.

@wiredfool
Copy link
Member

Can you share the other image where you're getting similar behavior?

@db4
Copy link
Author

db4 commented Aug 8, 2016

I've added another test image that triggers the bug. I still have no idea how to fix it.

@db4
Copy link
Author

db4 commented Aug 29, 2016

The test case is here: 25804cc

@wiredfool wiredfool self-assigned this Sep 22, 2016
@wiredfool wiredfool added the TIFF label Sep 29, 2016
@wiredfool
Copy link
Member

The general problem illustrated by the second test in this PR is that once you load the last frame in the image, the file is closed, so you can't go back and reload earlier frames. It's a general design decision, and one that probably needs to be looked at in concert with the other file closing issues.

@radarhere
Copy link
Member

The test in this PR now passes in Pillow 4.1.

@wiredfool wiredfool closed this Apr 22, 2017
@hugovk
Copy link
Member

hugovk commented Apr 23, 2017

Should the tests be included in the test suite?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants