1. Apr '09
    25

    JPEG Support in PIL

    Been working on the django side of the site and needed to install PIL. But after I built it I released that it doesn’t come with JPEG support :(

    *Update – Follow these instructions on Snow Leopard: http://breadandpepper.com/blog/2009/oct/2/django-development-snow-leopard/

    *** JPEG support not available

    Here are the steps for getting jpeg support on the mac, this should work for linux too, I have no idea what to do on that other OS…

    1. Download the jpeg source: http://www.ijg.org/.
    2. Unzip the file.
    3. In terminal cd into the directory: cd jpeg-6b/
    4. Then type: ./configure
    5. Then make
    6. I had some trouble installing the library because some directories did not exist. Make sure the following directories exist, and if they don’t use sudo mkdir to create them:
      • /usr/local/include
      • /usr/local/lib/
    7. Once these directories exists you should be ready to install: sudo make install

    — JPEG support ok