On Wed, Apr 18, 2007 at 08:28:00PM -0500, Jacob Kaplan-Moss <[EMAIL PROTECTED]> 
wrote:
> 
> On 4/18/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > Would you consider adding a thumbnail capability to Django?  I know
> > there are contributions out there that do it and the dependency on PIL
> > might be a negative but I believe this is a very common use case.  How
> > many apps have an image field and don't use some sort of thumbnail?  I
> > bet very few.
> 
> I'd be +1 on adding something as a contrib app. I've got some code we
> use at work, but it'll likely be some time before I'm able to
> generalize it enough for public consumption, so I'd be thrilled to see
> an effort by a few committed community members...

I've got a chunk of code that's reasonably generic but needs some
tidying up and decoupling... it's just a template tag... can be found:

http://arch.sommitrealweird.co.uk/viewarch/[EMAIL 
PROTECTED]/alug--mainline--0.1--patch-32/alug/general/helpers.py

for the main code and:

http://arch.sommitrealweird.co.uk/viewarch/[EMAIL 
PROTECTED]/alug--mainline--0.1--patch-32/alug/general/templatetags/thumbnail.py

there for the actual template tag.

It saves the thumbnail to the filesystem when it needs to regenerate it,
and so should even be reasonably fast after the first access.

Thanks,
Brett Parker.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to