django-ultimatethumb is another Django library for generating thumbnails but has some advantages:
- Thumbnails are not generated when the templatetag is called. Instead, images are generated on demand when they are requested by the browser. This can lead to a major speedup of your page response times.
- Thumbnails can be generated from static files too (for example to downscale retina-optimized images and therefore reducing traffic).
- Generate multiple thumbnail sizes at once for use in picture html tags with multiple sources (e.g. with media queries).
django-ultimatethumb supports Python 3 only and requires at least Django 1.11.
A Python 3.6 interpreter is required in addition to pipenv.
$ pipenv install --python 3.6 --dev
$ pipenv shell
$ pip install -e .
Now you're ready to run the tests:
$ pipenv run py.test