From f4779195a2756cb8be4e345f0abba3fa835dace7 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sat, 1 Nov 2014 15:42:16 +0200 Subject: [PATCH] fix pdf ratio --- pandora/document/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/document/models.py b/pandora/document/models.py index 6e69575e..99d357c5 100644 --- a/pandora/document/models.py +++ b/pandora/document/models.py @@ -244,7 +244,7 @@ class Document(models.Model): def get_ratio(self): if self.extension == 'pdf': - image = self.thumbnail() + image = self.thumbnail(1024) try: size = Image.open(image).size except: