um. try thumbnails again

This commit is contained in:
Sanj 2011-06-30 00:43:01 +05:30
parent f63ee3b99c
commit f14014b091

View File

@ -126,7 +126,7 @@ class File(models.Model):
try:
url = self.file.url
if self.type.lower() == 'image':
thumbnail = get_thumbnail(open(self.file.path), "300x", quality=60).url
thumbnail = get_thumbnail(open(self.file.path), "400x300", crop='center', quality=60).url
else:
thumbnail = ''
except: