2010-02-14 42 views
2

似乎无法获得sorl.thumnail来创建缩略图。它只是创建空文件。Django sorl.thumbnail问题

说,试着上传3.gif,原始文件被上传罚款,缩略图不创建,它会创建0字节的文件:

-rwxrwxrwx 1 www-data www-data 14128 2010-02-13 06:57 3.gif 
-rwxrwxrwx 1 www-data www-data  0 2010-02-13 06:57 3_gif_200x200_autocrop_q85.jpg 

模板看起来像这样

{% thumbnail photo.photo 200x200 autocrop as thumb %} 
<img src="{{ thumb }}" width="{{ thumb.width }}" height="{{ thumb.height }}" alt="{{ photo.title }}" /> 
+0

您的PIL安装是否具有所有相关的库?你的/ var/log/syslog(或等价物)说什么? –

回答

0

必须重新安装PIL

+0

感谢您的提示。你是怎么决定重新安装PIL的......你发现了一些特定的错误信息? – lud0h

+0

你是怎么重新安装的?表单来源? – Harry