andreirk / django-hotclub

Automatically exported from code.google.com/p/django-hotclub
0 stars 0 forks source link

Avatar crashes when uploading a PNG #112

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I made a screenshot on mac os x and tried to upload that as an avatar image. 
There is a nasty 
unexplainable error about NoneType being unscriptable. Should be easy to 
reproduce. I am using 
r1197 so I know I'm not on the safe side. But I just wanted to report this.

Original issue reported on code.google.com by marijn.v...@gmail.com on 12 Nov 2008 at 12:10

GoogleCodeExporter commented 9 years ago
Heyas

I had the same sort of issue as you, but it's more of a bug in the PIL rather 
than in
Pinax.  Assuming that you have all the png support stuff installed (on linux 
you need
zlib and the png lib, all of which are installed for you if you install
python-imaging via apt-get or yast or whatever).  I have somewhat of a fix: 

http://groups.google.com/group/comp.lang.python/browse_thread/thread/c1dadb8f9b8
9e321

I dunno how most people feel about messing around with library code, but with 
the
above tweak, I got png avatars to work for me.  I'm curious as to how it would 
work
for you.  All my other tests with the PIL work (at least for gifs and jpegs).  
You're
results may vary. 

Still kinda sucks that pinax goes down hard if you try to upload a png or view 
a page
wherever that png is attempted to be loaded (at least until you remove the 
avatar in
the admin), but it's not really an issue with pinax.

Original comment by silfh...@gmail.com on 13 Nov 2008 at 10:35

GoogleCodeExporter commented 9 years ago
Yeah, I don't see much we can do to fix this problem. I would give what 
silfheed said to see if it works for you 
(btw, thanks silfheed for the awesome info). If there is anything Pinax can do 
to fix this I am open, but I am not 
seeing anything that Pinax is doing that would make this Pinax's fault. Marking 
invalid.

Original comment by bros...@gmail.com on 22 Nov 2008 at 4:00