Re: [Image-SIG] Suggestion to use tcl stubs when building PIL

2009-07-27 Thread Alexey Borzenkov
On Tue, Jul 14, 2009 at 11:48 PM, Sridhar Ratnakumar wrote: > Jeff Hobbs pointed out that using tcl stubs is the correct thing to do in > order to ensure compatibility with different versions of Tcl/Tk libraries > installed. Since this is not an issue with python.org's Python (whose 2.5 > version c

Re: [Image-SIG] Patch: Better compression of png-images

2009-07-27 Thread Alexey Borzenkov
On Wed, Jul 22, 2009 at 1:34 PM, Flynn Marquardt wrote: > Reverting this to: > >                err = deflate(&context->z_stream, Z_NO_FLUSH); > >                /* FIXME: temporary workaround for problem with recent >                   versions of zlib -- 990709/fl */ > >                // err = d

Re: [Image-SIG] Patch: Better compression of png-images

2009-07-27 Thread Alexey Borzenkov
Hi again, I found what was the real problem with Z_NO_FLUSH. The code was only checking that it ran out of output buffer, but when it does it can usually mean that not all input was deflated. However, when it enters ZipEncode next time, the data that was not deflated in the previous round is forgo