I tried to use PIL to do some JPEG work in my django app with PIL but I'm getting this IOError.. not sure what to do.
""decoder jpeg not available""
Am I missing the JPEG decoder from my server? If so, how do I fix it?
I tried to use PIL to do some JPEG work in my django app with PIL but I'm getting this IOError.. not sure what to do.
""decoder jpeg not available""
Am I missing the JPEG decoder from my server? If so, how do I fix it?
On Debian distributions use libjpeg62-turbo-dev instead of libjpeg8-dev
I don't have sudo privileges, because I am on a shared bluehost server. So I can't run any of those sudo apt-get jpeg commands. I ended up running
and apparently pillow was able to find support for jpegs.
There is a selftest.py in your Imaging installation folder, try:
you will see something like that:
if JPEG support not available, Centos:
You can build PIL from source: http://effbot.org/zone/pil-decoder-jpeg-not-available.htm
For mac's users, You can download the library from here: http://ethan.tira-thompson.com/Mac_OS_X_Ports.html. Then, uninstall and install PIL
You need to install jpeg library first and reinstall your PIL. For example, I'm using CentOS, to install libjpeg, I run
It depends on what kind of linux you are using. And here you have to remove the old PIL
Then install the PIL