Not sure exactly what I broke. I have an ubuntu natty linux server, and have several virtualenvs on it. Django image upload was working fine on the dev virtualenv, so it was time to get it working in production. PIL was misbehaving there so I tried to uninstall and reinstall several times after fiddling with libjpeg dependencies and ended up following the steps here: http://littlebrain.org/2011/08/21/installing-pil-in-virtualenv-in-ubuntu/
and now image upload is broken in all virtualenvs.
The PIL setup summary says all should work:
--- TKINTER support available
--- JPEG support available
--- ZLIB (PNG/ZIP) support available
--- FREETYPE2 support available
--- LITTLECMS support available
and when I run the following test within the shell it works fine, with both JPG and PNG:
>>> import PIL
>>> import Image
>>> import _imaging
>>> i = Image.open("someimage.jpg")
>>> i
<JpegImagePlugin.JpegImageFile image mode=RGB size=600x599 at 0x9646C0C>
>>> i.load()
<PixelAccess object at 0x2b86510>
however when I try to upload images in the CMS I get the dreaded:
Upload a valid image. The file you uploaded was either not an image or a corrupted image.
Anyone have an idea what could be going wrong?