标签:http io os ar 使用 for strong sp 2014
安装Pillow之前先安装好python-dev libzip-dev libjpeg8-dev libfreetype6-dev libpng12-dev 否则在用PIL(Pillow)进行上传图片压缩格式保存时会出错:
encoder jpeg not available
decoder zip not available
sudo apt-get install python-dev libzip-dev libjpeg8-dev libfreetype6-dev libpng12-dev
pip uninstall Pillow
pip install Pillow
version Pillow 2.6.1
platform linux2 2.7.6 (default, Mar 22 2014, 22:59:38)
TKINTER support not available
— JPEG support available
OPENJPEG (JPEG2000) support not available
— ZLIB (PNG/ZIP) support available
LIBTIFF support not available
— FREETYPE2 support available
LITTLECMS2 support not available
*** WEBP support not available
使用django + Pillow进行图片上传压缩格式保存时出错的处理
标签:http io os ar 使用 for strong sp 2014
原文地址:http://my.oschina.net/u/565856/blog/334977