开发者

Django sorl.thumbnail issues

Can't seem to get sorl.thumnail to create thumbnails. It just creates empty files.

Say, tried uploading 3.gif, the original file gets uploaded fine, thumbnail does not created, it creates a file with 0 bytes:

-rwxrwxrwx 1 www-data www-data 14128 2010-02-13 06:57 3.gif
-rwxrwxrwx 1 www-data ww开发者_如何学运维w-data     0 2010-02-13 06:57 3_gif_200x200_autocrop_q85.jpg

The template looks like this

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


Had to reinstall PIL

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜