Create thumbnails for an ImageField in django

Django does not provide any standard way of organizing thumbnails. Even though community has some applications to work with thumbnails, they are usually over kill if You only want to create a thumbnail for an ImageField. So here is my solution to handle thumbnails.

To hande thumbnails I over-wrote my model's save method to read original image field into a StringIO, manipulate the image and save it into a thumbnail image. Here is the code.

blog comments powered by Disqus