django-athumb icondjango-athumb 2.0

A simple, S3-backed thumbnailer field
Storing images and their thumbnails on S3 is a bit of a clumbsy endeavor with Django. django-athumb is a Django app that may work with more typical storage backends, it is intended to accept image uploads, thumbnail them, and upload the original plus the thumbs to S3. You may then get to the thumbnails in your template by doing something like:

< img src="{% thumbnail some_obj.image '80x80' %}" / >

This automatically assembles the remote S3 URL to retrieve the thumbnail from. No error checking is done, and several assumptions are made for the sake of speed.

Advantages of django-athumb

The primary advantage of django-athumb is that, unlike sorl and others, thumbnails are generated at the time of user uploading the original image. Instead of generating thumbs on-demand and making the user wait, we get that out of the way from the beginning. This leads to a few big benefits:

* We never check for the existence of a file, after the first save/upload. We assume it exists, and skip a whole lot of Disk I/O trying to determine that. This was horrendously slow on sorl + S3, as it had to hit a remote service every time it wanted to know if a thumbnail needed generating.
* Since we define every possible thumbnail in advance via models.py, we have a defined set of possible values. They can also be more intelligently named than other packages. It is also possible to later add more sizes/thumbs.
* This may be ran on your own hardware with decent speed. Running it on EC2 makes it just that much faster.

last updated on:
January 25th, 2011, 14:54 GMT
price:
FREE!
developed by:
Gregory Taylor
license type:
BSD License 
category:
ROOT \ Internet \ HTTP (WWW)

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

What's New in This Release:
  • Complete re-work of the way thumbnails are specified in models.py.
  • Removal of the attribute-based image field size retrieval, since we no longer are just limited to dimensions.
  • Further misc. improvements.
read full changelog

Add your review!

SUBMIT