Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
The original and the best
Python Shell CSS
Branch: master
Pull request Compare This branch is 8 commits ahead, 368 commits behind mariocesar:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
docs
sorl
tests
.gitignore
.travis.yml
AUTHORS
CHANGES.rst
LICENSE
MANIFEST.in
README.rst
setup.py

README.rst

Thumbnails for Django. The original and the best

https://secure.travis-ci.org/mariocesar/sorl-thumbnail.png?branch=master:target:https://travis-ci.org/mariocesar/sorl-thumbnail

Features at a glance

  • Storage support
  • Pluggable Engine support (ImageMagick, PIL, pgmagick included)
  • Pluggable Key Value Store support (cached db, redis)
  • Pluggable Backend support
  • Admin integration with possibility to delete
  • Dummy generation (placeholders)
  • Flexible, simple syntax, generates no html
  • ImageField for model that deletes thumbnails
  • CSS style cropping options
  • Margin calculation for vertical positioning

Read more in the documentation (latest version)

Format preservation has been added. To preserve format set settings.THUMBNAIL_PRESERVE_FORMAT = True.

Gracefully degrades and defaults to using settings.THUMBNAIL_FORMAT.

Applications that currently use sorl should not notice any difference in functionality unless settings.THUMBNAIL_PRESERVE_FORMAT is set explicitly set to True.

Usage

Everything documented here: http://thumbnail.sorl.net/ and:

<img src="{% thumbnail obj.image "200x150" crop="center" %}"/>
Something went wrong with that request. Please try again.