擅长:python、mysql、java
<p>您应该尝试<a href="https://github.com/SmileyChris/easy-thumbnails" rel="nofollow">Django Easy Thumbnails app</a>,它有一些选项可以添加一个<strong>后处理</strong>来优化上载的图像:<a href="http://easy-thumbnails.readthedocs.org/en/latest/ref/optimize/" rel="nofollow">PostProcessor documentation</a></p>
<p>我在几个项目的生产中使用它。
它工作得很好,图像大小肯定更小,页面加载速度也更快。</p>