Re: memoryError in FpxImageUploadPlugin.py

"Charlie Clark" <[email protected]>
Newsgroups gmane.comp.python.image
Organization Clark Consulting & Research
Message-ID <[email protected]>
Am 16.04.2011, 17:51 Uhr, schrieb Gábor Farkas <[email protected]>:

> is PIL's image-format-detection purely filename-extension based?
> i mean, what happens if i take the problematic file, and rename it
> to have a jpeg-extension... will PIL not try the other  
> file-format-plugins,
> when jpeg fails?

No, PIL won'.t It isn't brilliant but that's how it works. Try and think  
through the converse: this could be JPEG but I'll work my way through the  
alternatives till I'm sure. In your situation it seems perfectly  
reasonable to expect the MIME-type to be available, so you can enforce it  
in the form handling.

Charlie
-- 
Charlie Clark
Managing Director
Clark Consulting & Research
German Office
Helmholtzstr. 20
Düsseldorf
D- 40215
Tel: +49-211-600-3657
Mobile: +49-178-782-6226
_______________________________________________
Image-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/image-sig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.