more thumbnail cleanups

This commit is contained in:
j 2014-11-01 18:09:33 +02:00
parent 9881884469
commit d12121d229

View file

@ -233,7 +233,7 @@ class Document(models.Model):
def get_info(self):
if self.extension == 'pdf':
self.thumbnail()
self.thumbnail(1024)
if self.pages == -1:
self.width = -1
self.height = -1