-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JPG decoder not included in requirements.txt #110
Comments
Out of interest, I tried uploading a GIF and again I got:
I'm not sure why the error still mentions a JPG decoder. I guess we should let people upload GIFs, but anyway, if a user uploads a file that is not a supported file type, or if anything goes wrong with the image processing, then some kind of controlled error response (in JSON) should be there. 401 Bad Request? Probably a better code out there. |
I've never seen this before. A google returns this link: http://effbot.org/zone/pil-decoder-jpeg-not-available.htm It's an install specific thing, and I'm not sure I can control it in requirements.txt... |
Is libjpeg installed? |
I already had libjpeg62 installed (there is no "libjpeg" avail to apt-get). I just installed libjpeg62-dev and still no change. This post seems relevant: |
Reinstalling PIL according to the explicit sequence in http://www.eddiewelker.com/2010/03/31/installing-pil-virtualenv-ubuntu/ solved this. |
On uploading a JPG to my user profile, the photo was successfully uploaded, but viewing the image gave a 500 error. Presumably, the
requirements.txt
should include a JPG decoder.The error:
The text was updated successfully, but these errors were encountered: