[Image-SIG] Confirmation of bug compiling PIL and request that GIF patch be applied

Connelly Barnes connellybarnes at yahoo.com
Mon Aug 20 23:24:46 CEST 2007


Hi,

1. Confirming a bug in PIL compilation with Mingw on Windows

I tried to compile PIL on Windows XP with Mingw.  Compiling with the Python 2.5.1 binary obtained
from the python.org site (which is compiled via Visual Studio .NET 2003) I obtained the same error
that Michael Gross obtained:

  http://mail.python.org/pipermail/image-sig/2006-April/003854.html

Following Fredrik Lundh's suggestion that this may be caused by a conflict in the runtime library
that is linked against I installed an unofficial Mingw variant that allows several different
"Microsoft Visual Studio" runtimes to be linked against, and linked against the runtime library
that my Python binary was linked against (MSVCR71.DLL).  This did not resolve the problem; the
same error that Michael Gross reported was again obtained.

Has anyone had success building PIL 1.1.6 on Windows with Mingw?

2. Requesting that GIF reading patch be applied

Please apply the patch:

  http://www.nabble.com/Patch:-Animated-GIF-loading-t4088311.html

This fixes the animated GIF reading support in PIL.  After applying the patch, a GIF animation can
be viewed by:

for x in ImageSequence.Iterator(Image.open('x.gif')):
  x.show()

Before applying the patch, it is not at all clear how to obtain the frames of the GIF animation;
several hours of experimenting with the ImageSequence iterator and its various disposal and
transparency fields availed me naught until I applied the patch.

Thanks,
Connelly Barnes
connellybarnes.com



       
____________________________________________________________________________________
Yahoo! oneSearch: Finally, mobile search 
that gives answers, not web links. 
http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC


More information about the Image-SIG mailing list