Beispiel #1
0
 def thumbnail(self):
     thumb = DjangoThumbnail(self.file, (75,75))
     thumb.generate()
     return '<img src="%s" width="%s" height="%s"/>' % (thumb.absolute_url, thumb.width(), thumb.height())