Skip to content

Instantly share code, notes, and snippets.

@iambibhas
Created May 17, 2013 14:03
Show Gist options
  • Save iambibhas/5599223 to your computer and use it in GitHub Desktop.
Save iambibhas/5599223 to your computer and use it in GitHub Desktop.
Adding JPEG, PNG, ZIP and FREETYPE2 support to PIL
sudo apt-get install libjpeg8 libjpeg62-dev libfreetype6 libfreetype6-dev
sudo ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib
sudo ln -s /usr/lib/x86_64-linux-gnu/libfreetype.so /usr/lib
sudo ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib
pip install PIL
--------------------------------------------------------------------
PIL 1.1.7 SETUP SUMMARY
--------------------------------------------------------------------
version 1.1.7
platform linux2 2.7.3 (default, Sep 26 2012, 21:51:14)
[GCC 4.7.2]
--------------------------------------------------------------------
*** TKINTER support not available
--- JPEG support available
--- ZLIB (PNG/ZIP) support available
--- FREETYPE2 support available
*** LITTLECMS support not available
--------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment