Skip to content

Latest commit

 

History

History
62 lines (40 loc) · 1.88 KB

README.rst

File metadata and controls

62 lines (40 loc) · 1.88 KB

django-ultimatethumb

Latest Version Coverage Status Documentation Status https://travis-ci.org/moccu/django-ultimatethumb.svg?branch=master

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).

Requirements

django-ultimatethumb supports Python 3 only and requires at least Django 1.11.

Prepare for development

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

Resources