Code


Version 6 (modified by kenneth gonsalves <lawgon@…>, 6 years ago) (diff)

--

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 - Google Discussion

Current Implementations

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