[Image-SIG] Re: progressive image displaying

Fredrik Lundh fredrik at pythonware.com
Wed Jun 30 06:28:28 EDT 2004


Arthur Elsenaar wrote:

> what I like to do, is reading arbitrary images coming in over a socket
> and display them _as they arrive_, so when a chunk is in, immediatly
> display it (in pygame).
>  From the PIL documentation, I can see that one needs to use the
> frombuffer() method and feed that to pygame using the fromstring()
> method. Also I understand the pygame.load() function needs a complete
> file like object (StringIO), so how does one go about partly displaying
> these incoming data chunks? Do I need to use the PIL parse function
> somehow? Do I need to pad the missing data?

while PIL can decode things incrementally, there's no (reliable) way to
get access to incomplete image data.  maybe in 1.1.6 ?

(but I'd be happy to be proven wrong on this one)

</F>






More information about the Image-SIG mailing list