= Discussion about Thumbnail Contribution for Django = == Problem == The majority of applications that have images, probably use thumbnails in some capacity. There is no standard thumbnail capability in Django but there are a couple of different options out there that people have created. This page is an attempt to gather them in one place and discuss the best strategy for integrating one in Django. The original thread discussing this issue is here - [http://groups.google.com/group/django-developers/browse_thread/thread/322ec3bbb1a23ac1 Google Discussion] == Current Implementations == * Nesh's thumbnail is probably the most robust - [http://code.google.com/p/django-utils/wiki/Thumbnail Nesh's Thumbnail] * Here's a more simple filter from Django snippets - [http://www.djangosnippets.org/snippets/192/ Simple filter] * In Ticket #4115 you will find a patch with a contrib.thumbnails package - good documented; read the Google Discussion mentioned above for some thoughts about the implementation. * Quick tip for adding thumbnails - [http://superjared.com/entry/django-quick-tips-2-image-thumbnails/ Blog posting] * Yet another approach to adding a thumbnail - CustomUploadAndFilters * One more external approach - http://www.verdjn.com/ == Design Considerations == Whichever solution is considered should have the following features: * Capability to define arbitrary thumbnail sizes in templates * Caching of the files to disk and possibly to memory Some key questions: * Do we want to create a new field or just expand the existing image field? * What dependencies are we comfortable with? * Preference for limiting it to the Python Imaging Library only. == Other Notes == * Nesh's thumbnails can be used as a standalone templatetag without using his ImageWithThumbnails field. Just use the ordinary django ImageField