ResizeImageField is a project mainly written in ..., it's free.
automatic thumbnail and scaled image generation and RemovableImageField as well
by Wim Feijen, Go2People.
ResizeImageField is a replacement for django's ImageField. It has two major benefits:
It's easy to use:
Working installation of PIL, the Python Imaging Library
Scaled images will be stored in 'photos/scaled', thumbnails will be stored in 'photos/thumb'.
Access your images from your template. Add::
{% load resize_filters %} {{ address.photo.url|thumb }}
or::
{{ address.photo.url|scaled }}
Override the default behaviour in settings.py
Scaling is done by PIL's thumbnail function, transparency is conserved.
This code is an adaptation from python snippet 636 by tomZ: "Updated Filefield / ImageField with a delete checkbox"