[Image-SIG] PATCH: Palette fix for FLI/FLC animations.

Jonas Aaberg cja at gmx.net
Sun Aug 12 14:18:54 CEST 2007

Hi everyone,

PIL assumes that the palette is always the first frame in FLI/FLC  
animations. However,
this is not always the case. (For example, trying to load a FLC animations  
Civlization III results in the usage of the PIL default grayscale palette.)
After having a look at some FLI/FLC documentation I did some small changes  
FliImagePlugin.py and managed to get the palette correctly loaded.
Please see the attached patch.

Best regards,
  Jonas Åberg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FliImagePlugin.py.patch
Type: application/octet-stream
Size: 1268 bytes
Desc: not available
Url : http://mail.python.org/pipermail/image-sig/attachments/20070812/a57ac17c/attachment.obj 

More information about the Image-SIG mailing list