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

Frame position when seeking past the end of file #1282

Merged
merged 1 commit into from
Jun 30, 2015

Conversation

radarhere
Copy link
Member

When some formats seek to a non-existent frame and raise EOFError, tell() then reports the non-existent frame position.

A side effect of this is n_frames reporting an incorrect value.

I've added tests for other formats, except for SPIDER. This is because the test file matches the condition self.istack == 0 on this line which means that seek has no effect.

@radarhere radarhere force-pushed the eoferror branch 3 times, most recently from 7409931 to 3f4a4a2 Compare June 18, 2015 13:45
@radarhere radarhere changed the title Fixed GifImagePlugin frame position when seeking past the end of file Frame position when seeking past the end of file Jun 18, 2015
@aclark4life
Copy link
Member

This looks like it could use @wiredfool or @hugovk or @homm eyes

@wiredfool
Copy link
Member

looks ok to me.

aclark4life added a commit that referenced this pull request Jun 30, 2015
Frame position when seeking past the end of file
@aclark4life aclark4life merged commit 75be4af into python-pillow:master Jun 30, 2015
@aclark4life
Copy link
Member

Thanks @wiredfool and @radarhere and @anntzer

@radarhere radarhere deleted the eoferror branch June 30, 2015 00:30
@radarhere
Copy link
Member Author

Thanks for that!

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

Successfully merging this pull request may close these issues.

3 participants