Skip to content

Animated GIF is incorrect when displaying any frame after the first #634

@bpeck

Description

@bpeck

I believe this is a dupe of #312 , but I wanted to make a new issue just so my current experience with it it could be tracked. Sorry if that is spammy of me.

I'm on OSX 10.9, and after cloning and building the latest version of Pillow from github last night, I am having issues with properly displaying any frame of an animated GIF beyond the first frame. My test image is an animated GIF that displays correctly in my web browser and in Finder's preview, but if I load the GIF into a PIL.Image and call show() on any frame besides the first one, I get a corrupted image.

I tried a couple workarounds I've seen around involving copying the palette over to subsequent frames, but they don't seem to be working for me. See below for repro code.

in the following test code, I am using
https://dl.dropboxusercontent.com/u/14459075/test.gif
as my test.gif

import PIL
import PIL.Image
i = PIL.Image.open('test.gif')
i.show() # correct image displays
i.seek(i.tell() + 1)
i.show() # image is incorrect

screen shot 2014-04-17 at 9 45 57 pm

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugAny unexpected behavior, until confirmed feature.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions