On Fri, Jul 17, 2009 at 8:10 PM, Fredz./<[email protected]> wrote: > I might be loading the image in memory, but it sure seems 1000x faster > when you reach images the size of 10 megs and more.
this assumes that it would have to read the whole file anyway. some formats have the size info in a header on the first few KBs. i believe on those cases PIL can give the info as soon as possible. of course, that's a shortcoming of PIL, since it assumes the caller will eventually process the image, it doesn't make any effort to use format-specific knowledge to read only what's necessary. -- Javier --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---
