I am working on a firewall using Ubuntu 13.04 and python 3.3. I installed Pillow and libjpeg-dev (first installing the latter, as recommended), and when I install (or reinstall Pillow, I see this:
-------------------------------------------------------------------- PIL SETUP SUMMARY -------------------------------------------------------------------- version Pillow 2.3.0 platform linux 3.3.1 (default, Sep 25 2013, 19:29:01) [GCC 4.7.3] -------------------------------------------------------------------- *** TKINTER support not available --- JPEG support available --- ZLIB (PNG/ZIP) support available
Excellent! JPEG encoder recognized. Also, when I run the Pillow selftest.py script, it fails in a bunch of tests and starts with this:
-------------------------------------------------------------------- Pillow 2.3.0 TEST SUMMARY -------------------------------------------------------------------- Python modules loaded from /usr/local/lib/python3.3/dist-packages/PIL Binary modules loaded from /usr/local/lib/python3.3/dist-packages/PIL -------------------------------------------------------------------- --- PIL CORE support ok *** TKINTER support not installed *** JPEG support not installed --- ZLIB (PNG/ZIP) support ok
So now it does not recognize the JPEG decoder. To make sure this is not just a problem with selftest.py, I did my testing and am pretty sure that I can do and manipulate .png, but not .jpg. I searched and tried some of the suggested solutions, including making a symbolic link to the jpg library, for example:
sudo ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib
No dice. Does anyone have an idea for something else, can I try to get the jpeg decoder to work? It is really impractical for me to completely restrict the .png workflow.
source share