Fredrik Lundh is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

effbot / pil-2009-raclette http://effbot.org/zone/pil-index.htm

Work repository for PIL 1.1.7 and beyond. The "default" branch should be fairly solid, the other branches less so. For production use, see the pil-117 repository.

Clone this repository (size: 1.6 MB): HTTPS / SSH
hg clone https://bitbucket.org/effbot/pil-2009-raclette
hg clone ssh://hg@bitbucket.org/effbot/pil-2009-raclette

Issues

#7 Fix loop detection in animated GIFS

Reported by Valentino Volonghi

Currently the GIFImagePlugin hardcodes info['loop'] = 1 when it detects GIF extensions. The fix for this is rather simple.

Here is the specification for the field: http://www.let.rug.nl/~kleiweg/gif/netscape.html

And here is the bit of code that should go instead of the hardcoding:

    block = self.data()
    block = block[1:] # discard byte \x01
    self.info['loop'] = struct.unpack('h', block)[0]
Status: resolved Responsible: Fredrik Lundh Type: bug Priority: major
Milestone: raclette-final Component: pil-core Version: pil-1.1.6

Attachments

No attachments added for this issue yet.

Comments and changes

  1. #1 Fredrik Lundh

    written

    • Changed status from new to resolved.
    • Changed component from nothing to pil-core.

    Fixed in 1.1.7c2.

Add comment / attachment

Verification: Please write the text from the image in the box (letters only)

captcha

Is that you, Humanoid? Is this me?