I use PIL and I have this error:
decoder zip not available
in this line: {% thumbnail design.img "511x400" crop="center" as im %}
Full:
{% thumbnail design.img "511x400" crop="center" as im %}
<img src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}">
{% endthumbnail %}
I use Django 1.5, PIL and virtualenv
How can I fix this error?
EDIT:
I try:
pip uninstall PIL
apt-get install libjpeg-dev
apt-get install libfreetype6-dev
apt-get install zlib1g-dev
apt-get install libpng12-dev
pip install PIL --upgrade
but it still does not work
Result from terminal:
PIL 1.1.7 SETUP SUMMARY
--------------------------------------------------------------------
version 1.1.7
platform linux2 2.7.3 (default, Sep 26 2012, 21:53:58)
[GCC 4.7.2]
--------------------------------------------------------------------
*** TKINTER support not available
*** JPEG support not available
*** ZLIB (PNG/ZIP) support not available
*** FREETYPE2 support not available
*** LITTLECMS support not available
To add a missing option, make sure you have the required
library, and set the corresponding ROOT variable in the
setup.py script.