It seems like the files are being created , however they are 0 bytes in size. Seems like the process is not writing the file after it opens it. It is seemingly like a permissions problem, but unable to figure it out.
The permissions on the static/images directory is "rwxrwxr_x". On Saturday, September 15, 2012 1:12:06 PM UTC+5:30, Anurag wrote: > > I did compile (re-compile PIL) based on instructions on blogs and now > when i run the tests they all pass and this is what i see > > PIL 1.1.7 TEST SUMMARY > -------------------------------------------------------------------- > Python modules loaded from ./PIL > Binary modules loaded from ./PIL > -------------------------------------------------------------------- > --- PIL CORE support ok > --- TKINTER support ok > --- JPEG support ok > --- ZLIB (PNG/ZIP) support ok > --- FREETYPE2 support ok > --- LITTLECMS support ok > -------------------------------------------------------------------- > Running selftest: > --- 57 tests passed. > > > What should be the permission status on the static/images area? > Thanks Olliver,Jesaja > Anurag > > On Friday, September 14, 2012 7:22:54 PM UTC+5:30, Jesaja Everling 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 < >> olivier...@googlemail.com> 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 <quie...@gmail.com> 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 satchm...@googlegroups.com. >>>> To unsubscribe from this group, send email to >>>> satchmo-user...@googlegroups.com. >>>> 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 satchm...@googlegroups.com. >>> To unsubscribe from this group, send email to >>> satchmo-user...@googlegroups.com. >>> 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 view this discussion on the web visit https://groups.google.com/d/msg/satchmo-users/-/KVgLd5A2gicJ. To post to this group, send email to satchmo-users@googlegroups.com. To unsubscribe from this group, send email to satchmo-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en.