PS.:

If you have libjpeg-dev and libpng-dev, maybe PIL just can't find the
libraries:

http://jj.isgeek.net/2011/09/install-pil-with-jpeg-support-on-ubuntu-oneiric-64bits/

In this case, it will print something like this after compiling the module:

    *** TKINTER support not available (Tcl/Tk 8.5 libraries needed)
    *** JPEG support not available
    *** ZLIB (PNG/ZIP) support not available
    *** FREETYPE2 support not available
    *** LITTLECMS support not available


Best Regards,

Jesaja Everling


On Fri, Sep 14, 2012 at 3:52 PM, Jesaja Everling <[email protected]>wrote:

> Hi Olivier,
> Hi Anurag,
>
> in fact, PIL is also used to verify if the file that was uploaded is a
> valid image when ImageField is used.
> So the problem may in fact be due to PIL.
>
> @Anurag: Make sure to have libjpeg-dev and libpng-dev installed, then try
> to install PIL again using "pip install PIL --upgrade" (or removing and
> re-installing it).
> Maybe PIL can't compile the code necessary to open these image formats (it
> should print that somewhere when compiling the module).
>
> Best Regards,
>
> Jesaja Everling
>
>
>
> On Fri, Sep 14, 2012 at 3:41 PM, Olivier Lauret <
> [email protected]> wrote:
>
>> Hi Anurag,
>>
>> The problem is probably not related to PIL as, if I'm not wrong,
>> uploading the image just change its name (by default) and put it in the
>> relevant folder. PIL is used when you use the thumbnail functionality. I'm
>> using Linux as well and I don't have any issue. Have you check the
>> permission on the static/images folder and the user used when running the
>> django project?
>>
>> Regards,
>> Olivier
>>
>>
>> On 14 September 2012 04:04, Anurag <[email protected]> wrote:
>>
>>>
>>>   Hi,
>>>      I am trying to create categories and products on my satchmo site
>>> and when i try to upload an image (jpg/png or whatever), i get the
>>> following error.
>>>
>>>               "Upload a valid image. The file you uploaded was either
>>> not an image or a corrupted image".
>>>
>>>     The images open fine on GIMP. I am running linux.
>>>
>>>     I re-installed my PIL(after removing the PIL directory and the
>>> PIL.pth file), but that did not change anything.
>>>
>>>     I have seen some threads talking about this error, and the only
>>> thing i could understand that i could try was to change the PIL
>>> installation.
>>>
>>>    Any other ideas. thanks
>>> Anurag
>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "Satchmo users" group.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msg/satchmo-users/-/focr65S2fREJ.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected].
>>> For more options, visit this group at
>>> http://groups.google.com/group/satchmo-users?hl=en.
>>>
>>
>>
>>
>> --
>> [image: Equalitea_logo] <http://www.equalitea.co.uk/>  
>> <http://facebook.com/equalitea>
>> <https://twitter.com/equalitea_uk>  <http://gplus.to/EqualiTea>
>> <http://www.pinterest.com/equalitea>  <http://equalitea-uk.tumblr.com>
>> <http://steepster.com/equalitea>   <http://www.equalitea.co.uk/>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Satchmo users" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/satchmo-users?hl=en.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en.

Reply via email to