#4115: contrib.thumbnails
---------------------------+------------------------------------------------
Reporter: SmileyChris | Owner: nobody
Status: new | Component: Contrib apps
Version: SVN | Resolution:
Keywords: | Stage: Design decision needed
Has_patch: 1 | Needs_docs: 0
Needs_tests: 0 | Needs_better_patch: 0
---------------------------+------------------------------------------------
Comment (by Christoph Rauch <[EMAIL PROTECTED]>):
A few thoughts:
If an original image is smaller than the requested thumbnail size,
''ThumnailTooSmall'' is raised. This makes sense as upscaling the image
would increase its size.
I propose that instead of raising ThumbnailTooSmall, we return the
original image instead and add a mechanism to use HTML to do the
upscaling. This mechanism should be able to decide if is best to use
either ''height'' or ''width'' so the aspect ratio gets preserved.
I think we could make a wrapper around the ''thumbnail'' and ''img_tag''
templatetags. Perhaps change the current ''thumbnail'' to be
''thumbnail_url'' instead?
Any comments?
--
Ticket URL: <http://code.djangoproject.com/ticket/4115#comment:44>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---