pythondjangopython-2.7freebsdeasy-thumbnails

freebsd Python27,mod_wsgi, Django, easy_thumbnails error: InvalidImageFormatError: The source file does not appear to be an image


i want to make this work on freebsd

I am always receiving this error when trying to generate a thumbnail with the easy_thumbnails module:

InvalidImageFormatError: The source file does not appear to be an image

btw the exact python code works fine on a RHEL box

any other suggestions for things to try here

thank you in advance


Solution

  • That's usually a sign that PIL is not finding the libraries for the image type. You mentioned that you installed from source with the library paths specified. Did you include all the libraries? Do you have the JPEG port installed? Did you try installing PIL from ports. The port defaults to include JPEG, ZLIB, Freetype2, etc.