Hello John,

On Mar 15, 7:56 pm, john2095 <john...@pobox.com> wrote:

> Question is "What is the definition of a 'valid image'" in this
> context?"
> and, optionally, where is the source code for that?

My understanding from what I've read is that most of the heavy lifting
for image handling is done by PIL (Python Imaging Library) <
http://www.pythonware.com/products/pil/ >.

I've been getting into using virtualenv and as part of that I've been
doing some PIL easy_installs.  One PIL install was built with the jpeg
library and when I tried uploading a jpeg image file, all went well.
Another PIL was built without the jpeg library and when I tried to
upload a jpeg image file, Django complained that the image wasn't in a
recognized format.

So, I assume Django is passing the file to PIL and asking if the file
is in a format that PIL can deal with and is in a valid format.

The PIL documentation may be able to clarify how it validates images.

Toodle-loooooooo............
creecode

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to