I finally got it to work, but I can't explain why. I followed this
tutorial: 
http://paul.annesley.cc/articles/2007/11/19/django-and-python-imaging-library-pil-on-leopard

One minute it wasn't working, the next it was. I've done this
installation on a few computers, Win XP and Mac OS X 10.4.10/11
(Intel) without a hitch before. I'm not sure what could have been
different on this current Powerbook running 10.4.11. I still can't get
PIL to compile on an older Powerbok G4. It always fails with
"gcc...exited with status 1" or something along those lines.

One thing I noticed about the imageField is that it doesn't overwrite
an existing file of the same name - it appends an underscore to the
end of the file. I would be nice if it would check to see if the file
name is the same and overwrite it, or not re-upload the image if
you're just changing other attributes of the model.

On May 16, 2:18 pm, mw <[EMAIL PROTECTED]> wrote:
> I'm having nothing but tons of trouble right now with the image field
> upload.  I don't know what the problem is for sure, yet, but yeah I
> think that I'm willing to say that the ImageField isn't as easy to get
> working as it should be :-/
>
> I think my problem may be OS X related and having to do with OS X's
> Apache and mod_python being 64 bit while my PIL is something else, but
> I need to verify that PIL is, in fact, 32 bit still.
>
> On May 16, 1:06 pm, Brandon Taylor <[EMAIL PROTECTED]> wrote:
>
> > Hi everyone,
>
> > I can't get the newforms admin to upload images. I have PIL and JPEG
> > support installed. My selftest on PIL reports that JPEG is supported,
> > along with PNG, but when I try to upload, I get:
>
> > Upload a valid image. The file you uploaded was either not an image or
> > a corrupted.
>
> > I can confirm that it *is* a JPEG, and it was working before I
> > switched to newforms-admin :)
>
> > Thoughts? Anyone experiencing something similar? I'm sure its a
> > problem with PIL and no Django, but have no clue as to where to start
> > to debug this.
>
> > TIA,
> > Brandon
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to