um. try thumbnails again
This commit is contained in:
parent
f63ee3b99c
commit
f14014b091
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user