On Sat, Jan 24, 2015 at 12:20 AM, Larry Martell <larry.mart...@gmail.com> wrote:
> I have a django app that downloads 100's of images. To increase the > performance, I want to change it so that it downloads thumbnails, and > when the user clicks on one then download the full image. > > I'm sure I can come up with something on my own (send an ajax request > on click, etc.) but I was wondering if anyone has already done > something like this and knew of any packages or can give any hints or > advice. > My suggestion - look into easy-thumbnails: http://easy-thumbnails.readthedocs.org/en/latest/index.html It's an augmentation of Django's ImageField that allows you to store a "single" image in your model, but also specify policies for how thumbnails of any image will be generated (in multiple sizes, if needed). The field will then automatically generate those thumbnails (either on upload, on demand on download, or in a background process, depending on how you configure it), and provide an easy way to find the media URL for each thumbnail (as well as the original). Yours, Russ Magee %-) -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJxq84-QPmFwrCECdo6rN0r2ae2JRAQaPo13_6RVz-nPZ_oLXQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.