ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> image-sig
image-sig
Re: [Image-SIG] Re: progressive image displaying
by Arthur Elsenaar other posts by this author
Jul 2 2004 1:45PM messages near this date
[Image-SIG] Re: progressive image displaying | [Image-SIG] =?iso-8859-1?q?=D4u=0D=0A_=08?=
On Jun 30, 2004, at 12:28, Fredrik Lundh wrote:

>  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 ?

hmm, too bad PIL can't do this cleanly. But I'm still interested in 
what you mean by 'no reliable'. Can you tell a bit more on what -can- 
be done in this respect? As I'm working on an art project, less than 
perfect results aren't a problem.

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

me too ;)

Thanks, Arthur.


_______________________________________________
Image-SIG maillist  -  Image-SIG@[...].org
http://mail.python.org/mailman/listinfo/image-sig
Thread:
Arthur Elsenaar
Fredrik Lundh
Arthur Elsenaar

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved