我在创建缩略图的过程中遇到了问题。我在其最新版本中使用 sorl.thumbnail。
错误指向我的缩略图,但图像的地址存在。
{% thumbnail img "255x120" crop="center" as im %}
<img src="{{ im.url }}" height="120" />
{% endthumbnail %}
它指控问题出在 PIL 上:
Request Method: GET
Request URL: http://localhost:8000/
Django Version: 1.3.1
Exception Type: TemplateSyntaxError
Exception Value:
Caught IOError while rendering: not enough data
Exception Location: D:\CODE\wamp\www\AMBIENTES\env\lib\site-packages\PIL\TiffImagePlugin.py in load, line 383
完整追溯: http ://dpaste.de/R2zLw/